pub trait OpenOptionsExt {
// Required methods
fn mode(&mut self, mode: u32) -> &mut Self;
fn custom_flags(&mut self, flags: i32) -> &mut Self;
}
Expand description
Re-export these to allow them to be used with Reuse
.
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
.
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.