Trait fs_set_times::SetTimes
source · [−]pub trait SetTimes {
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
fn 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
.