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§
sourcefn set_times(
&self,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
) -> Result<()>
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
.