cap_primitives::fs

Trait OpenOptionsExt

Source
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§

Source

fn mode(&mut self, mode: u32) -> &mut Self

Sets the mode bits that a new file will be created with.

Source

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.

Implementors§