Skip to main content

## OpenOptionsExt2

# Trait OpenOptionsExt2

Source

    pub trait OpenOptionsExt2: Sealed {
        // Required methods
        fn freeze_last_access_time(&mut self, freeze: bool) -> &mut Self;
        fn freeze_last_write_time(&mut self, freeze: bool) -> &mut Self;
    }

🔬This is a nightly-only experimental API. (`windows_freeze_file_times` #149715)
Available on Windows only.

## Required Methods§

Source

#### fn freeze_last_access_time(&mut self, freeze: bool) -> &mut Self

🔬This is a nightly-only experimental API. (`windows_freeze_file_times` #149715)

If set to `true`, prevent the “last access time” of the file from being changed.

Default to `false`.

Source

#### fn freeze_last_write_time(&mut self, freeze: bool) -> &mut Self

🔬This is a nightly-only experimental API. (`windows_freeze_file_times` #149715)

If set to `true`, prevent the “last write time” of the file from being changed.

Default to `false`.

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementors§

Source§

### impl OpenOptionsExt2 for OpenOptions