Struct no_std_compat::fs::FileTimes
1.75.0 · source · pub struct FileTimes(/* private fields */);
Expand description
Representation of the various timestamps on a file.
Implementations§
source§impl FileTimes
impl FileTimes
1.75.0 · sourcepub fn new() -> FileTimes
pub fn new() -> FileTimes
Create a new FileTimes
with no times set.
Using the resulting FileTimes
in File::set_times
will not modify any timestamps.
1.75.0 · sourcepub fn set_accessed(self, t: SystemTime) -> FileTimes
pub fn set_accessed(self, t: SystemTime) -> FileTimes
Set the last access time of a file.
1.75.0 · sourcepub fn set_modified(self, t: SystemTime) -> FileTimes
pub fn set_modified(self, t: SystemTime) -> FileTimes
Set the last modified time of a file.
Trait Implementations§
impl Copy for FileTimes
Auto Trait Implementations§
impl Freeze for FileTimes
impl RefUnwindSafe for FileTimes
impl Send for FileTimes
impl Sync for FileTimes
impl Unpin for FileTimes
impl UnwindSafe for FileTimes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)