pub struct FileTimes(_);
🔬This is a nightly-only experimental API. (
file_set_times
#98245)Expand description
Representation of the various timestamps on a file.
Implementations
sourceimpl FileTimes
impl FileTimes
sourcepub fn new() -> Self
🔬This is a nightly-only experimental API. (file_set_times
#98245)
pub fn new() -> Self
file_set_times
#98245)Create a new FileTimes
with no times set.
Using the resulting FileTimes
in File::set_times
will not modify any timestamps.
sourcepub fn set_accessed(self, t: SystemTime) -> Self
🔬This is a nightly-only experimental API. (file_set_times
#98245)
pub fn set_accessed(self, t: SystemTime) -> Self
file_set_times
#98245)Set the last access time of a file.
sourcepub fn set_modified(self, t: SystemTime) -> Self
🔬This is a nightly-only experimental API. (file_set_times
#98245)
pub fn set_modified(self, t: SystemTime) -> Self
file_set_times
#98245)Set the last modified time of a file.
Trait Implementations
impl Copy for FileTimes
Auto Trait Implementations
impl RefUnwindSafe for FileTimes
impl Send for FileTimes
impl Sync for FileTimes
impl Unpin for FileTimes
impl UnwindSafe for FileTimes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more