fs_set_times

Trait SetTimes

Source
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§