Struct cap_std::fs::OpenOptions [−][src]
pub struct OpenOptions { /* fields omitted */ }Expand description
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
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
Auto Trait Implementations
impl RefUnwindSafe for OpenOptionsimpl Send for OpenOptionsimpl Sync for OpenOptionsimpl Unpin for OpenOptionsimpl UnwindSafe for OpenOptionsBlanket Implementations
Mutably borrows from an owned value. Read more