pub struct FileTimes(/* private fields */);
Representation of the various timestamps on a file.
impl FileTimes
pub fn new() -> Self
Creates a new FileTimes with no times set.
Using the resulting FileTimes in File::set_times will not modify any timestamps.
pub fn set_accessed(self, t: SystemTime) -> Self
Set the last access time of a file.
pub fn set_modified(self, t: SystemTime) -> Self
Set the last modified time of a file.
impl Clone for FileTimes
fn clone(&self) -> FileTimes
fn clone_from(&mut self, source: &Self)
source. Read more
impl Debug for FileTimes
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for FileTimes
impl FileTimesExt for FileTimesAvailable on Apple only.
fn set_created(self, t: SystemTime) -> Self
impl FileTimesExt for FileTimesAvailable on Windows only.
fn set_created(self, t: SystemTime) -> Self
impl Copy for FileTimes
impl Freeze for FileTimes
impl RefUnwindSafe for FileTimes
impl Send for FileTimes
impl Sync for FileTimes
impl Unpin for FileTimes
impl UnwindSafe for FileTimes
impl<T> Any for Twhere
T: 'static + ?Sized,impl<T> Borrow<T> for Twhere
T: ?Sized,impl<T> BorrowMut<T> for Twhere
T: ?Sized,impl<T> CloneToUninit for Twhere
T: Clone,unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit #126799)
impl<T> From<T> for T
fn from(t: T) -> T
Returns the argument unchanged.
impl<T, U> Into<U> for Twhere
U: From<T>,fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
impl<T> ToOwned for Twhere
T: Clone,type Owned = T
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/fs/struct.FileTimes.html