pub trait OpenOptionsExt {
// Required methods
fn access_mode(&mut self, access: u32) -> &mut Self;
fn share_mode(&mut self, val: u32) -> &mut Self;
fn custom_flags(&mut self, flags: u32) -> &mut Self;
fn attributes(&mut self, val: u32) -> &mut Self;
fn security_qos_flags(&mut self, flags: u32) -> &mut Self;
}Expand description
Windows-specific extensions to [fs::OpenOptions].
Required Methods§
Sourcefn access_mode(&mut self, access: u32) -> &mut Self
fn access_mode(&mut self, access: u32) -> &mut Self
Overrides the dwDesiredAccess argument to the call to [CreateFile]
with the specified value.
Overrides the dwShareMode argument to the call to [CreateFile] with
the specified value.
Sourcefn custom_flags(&mut self, flags: u32) -> &mut Self
fn custom_flags(&mut self, flags: u32) -> &mut Self
Sets extra flags for the dwFileFlags argument to the call to
CreateFile2 to the specified value (or combines it with
attributes and security_qos_flags to set the dwFlagsAndAttributes
for CreateFile).
Sourcefn attributes(&mut self, val: u32) -> &mut Self
fn attributes(&mut self, val: u32) -> &mut Self
Sets the dwFileAttributes argument to the call to CreateFile2 to
the specified value (or combines it with custom_flags and
security_qos_flags to set the dwFlagsAndAttributes for
CreateFile).
Sourcefn security_qos_flags(&mut self, flags: u32) -> &mut Self
fn security_qos_flags(&mut self, flags: u32) -> &mut Self
Sets the dwSecurityQosFlags argument to the call to CreateFile2 to
the specified value (or combines it with custom_flags and attributes
to set the dwFlagsAndAttributes for CreateFile).
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.