pub trait SetTimes {
    // Required method
    fn set_times(
        &self,
        atime: Option<SystemTimeSpec>,
        mtime: Option<SystemTimeSpec>
    ) -> Result<()>;
}
Expand description

An extension trait for std::fs::File, cap_std::fs::File, and similar types.

Required Methods§

source

fn set_times( &self, atime: Option<SystemTimeSpec>, mtime: Option<SystemTimeSpec> ) -> Result<()>

Set the last access and last modification timestamps of an open file handle.

This corresponds to filetime::set_file_handle_times.

Implementors§