pub trait OpenOptionsExt {
// Required methods
fn mode(&mut self, mode: u32) -> &mut Self;
fn custom_flags(&mut self, flags: i32) -> &mut Self;
}
Expand description
Unix-specific extensions to [fs::OpenOptions
].
Required Methods§
sourcefn mode(&mut self, mode: u32) -> &mut Self
fn mode(&mut self, mode: u32) -> &mut Self
Sets the mode bits that a new file will be created with.
sourcefn custom_flags(&mut self, flags: i32) -> &mut Self
fn custom_flags(&mut self, flags: i32) -> &mut Self
Pass custom flags to the flags
argument of open
.
Object Safety§
This trait is not object safe.