Struct FileTimes
pub struct FileTimes { pub(in ::sys::fs::unix) accessed: Option<SystemTime>, pub(in ::sys::fs::unix) modified: Option<SystemTime> }
Fields
accessed: Option<SystemTime>modified: Option<SystemTime>
Implementations
impl FileTimes
fn set_accessed(&mut self, t: SystemTime)fn set_modified(&mut self, t: SystemTime)
Trait Implementations
impl Clone for FileTimes
fn clone(&self) -> FileTimes
impl Copy for FileTimes
impl Debug for FileTimes
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for FileTimes
fn default() -> FileTimes
impl TrivialClone 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 UnsafeUnpin for FileTimes
impl UnwindSafe for FileTimes
Blanket Implementations
impl<T> Any for FileTimes
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FileTimes
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FileTimes
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FileTimes
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FileTimes
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for FileTimes
where
T: Copy + Debug,
impl<T> SizeHint for FileTimes
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FileTimes
impl<T> ToOwned for FileTimes
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FileTimes
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FileTimes
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FileTimes
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>