pub trait FileOptionsExt: Into<FileOptions> {
    // Required methods
    fn new() -> Self;
    fn read(self, read: bool) -> Self;
    fn read_data(self, read: bool) -> Self;
    fn write(self, write: bool) -> Self;
    fn append(self, append: bool) -> Self;
    fn is_empty(&self) -> bool;
    fn is_read(&self) -> bool;
    fn is_read_data(&self) -> bool;
    fn is_write(&self) -> bool;
    fn is_append(&self) -> bool;
    fn is_read_any(&self) -> bool;
    fn is_write_any(&self) -> bool;
}
Expand description

Extension for sys::ffi::FileOptions make it looks like [std::fs::OpenOptions].

Required Methods§

source

fn new() -> Self

Creates new empty file options.

source

fn read(self, read: bool) -> Self

source

fn read_data(self, read: bool) -> Self

source

fn write(self, write: bool) -> Self

source

fn append(self, append: bool) -> Self

source

fn is_empty(&self) -> bool

source

fn is_read(&self) -> bool

source

fn is_read_data(&self) -> bool

source

fn is_write(&self) -> bool

source

fn is_append(&self) -> bool

source

fn is_read_any(&self) -> bool

source

fn is_write_any(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§