Trait cap_std::fs_utf8::OpenOptionsExt
source · 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;
}fs_utf8 only.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).