Trait MetadataExt

Source
pub trait MetadataExt: Sealed {
    // Required methods
    fn change_time(self, time: i64) -> Self;
    fn last_access_time(self, time: i64) -> Self;
    fn last_write_time(self, time: i64) -> Self;
    fn creation_time(self, time: i64) -> Self;
}

Required Methods§

Source

fn change_time(self, time: i64) -> Self

The time the file was changed in FILETIME format.

Source

fn last_access_time(self, time: i64) -> Self

The time the file was last accessed in FILETIME format.

Source

fn last_write_time(self, time: i64) -> Self

The time the file was last written to in FILETIME format.

Source

fn creation_time(self, time: i64) -> Self

The time the file was created in FILETIME format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§