Trait fs_set_times::SetTimes[][src]

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

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<()>
[src]

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

This corresponds to filetime::set_file_handle_times.

Loading content...

Implementors

impl<T> SetTimes for T where
    T: AsUnsafeFile
[src]

Loading content...