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.

Object Safety§

This trait is not object safe.

Implementors§