Struct FileTimes

struct FileTimes(_)

Representation of the various timestamps on a file.

Implementations

impl FileTimes

fn new() -> Self

Creates a new FileTimes with no times set.

Using the resulting FileTimes in File::set_times will not modify any timestamps.

fn set_accessed(self: Self, t: SystemTime) -> Self

Set the last access time of a file.

fn set_modified(self: Self, t: SystemTime) -> Self

Set the last modified time of a file.

impl Clone for FileTimes

fn clone(self: &Self) -> FileTimes

impl Copy for FileTimes

impl Debug for FileTimes

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Default for FileTimes

fn default() -> FileTimes

impl FileTimesExt for fs::FileTimes

fn set_created(self: Self, t: SystemTime) -> Self

impl FileTimesExt for fs::FileTimes

fn set_created(self: Self, t: SystemTime) -> Self

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 FileTimes

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for FileTimes

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for FileTimes

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for FileTimes

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for FileTimes

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for FileTimes

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for FileTimes

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for FileTimes

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for FileTimes

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>