Struct cap_fs_ext::OpenOptions
source · [−]pub struct OpenOptions { /* private fields */ }
Expand description
Re-export these to allow them to be used with Reuse
.
Options and flags which can be used to configure how a file is opened.
This corresponds to std::fs::OpenOptions
.
Note that this OpenOptions
has no open
method. To open a file with
an OptionOptions
, you must first obtain a Dir
containing the path,
and then call Dir::open_with
.
Implementations
Re-export these to allow them to be used with Reuse
.
Creates a blank new set of options ready for configuration.
This corresponds to std::fs::OpenOptions::new
.
Sets the option for read access.
This corresponds to std::fs::OpenOptions::read
.
Sets the option for write access.
This corresponds to std::fs::OpenOptions::write
.
Sets the option for the append mode.
This corresponds to std::fs::OpenOptions::append
.
Sets the option for truncating a previous file.
This corresponds to std::fs::OpenOptions::truncate
.
Sets the option to create a new file.
This corresponds to std::fs::OpenOptions::create
.
Sets the option to always create a new file.
This corresponds to std::fs::OpenOptions::create_new
.
Trait Implementations
Sets the option for following symlinks in the last component of a path. Read more
Auto Trait Implementations
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
Mutably borrows from an owned value. Read more