pub struct AxOpenOptions { /* private fields */ }
Available on crate feature
fs
only.Expand description
Options and flags which can be used to configure how a file is opened.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Sourcepub const fn new() -> OpenOptions
pub const fn new() -> OpenOptions
Creates a blank new set of options ready for configuration.
Sourcepub fn create(&mut self, create: bool)
pub fn create(&mut self, create: bool)
Sets the option to create a new file, or open it if it already exists.
Sourcepub fn create_new(&mut self, create_new: bool)
pub fn create_new(&mut self, create_new: bool)
Sets the option to create a new file, failing if it already exists.
Sourcepub fn has_directory(&self) -> bool
pub fn has_directory(&self) -> bool
check whether contains directory.
Sourcepub fn set_create(self, create: bool, create_new: bool) -> OpenOptions
pub fn set_create(self, create: bool, create_new: bool) -> OpenOptions
Sets the create flags.
Sourcepub fn set_read(self, read: bool) -> OpenOptions
pub fn set_read(self, read: bool) -> OpenOptions
Sets the read flag.
Sourcepub fn set_write(self, write: bool) -> OpenOptions
pub fn set_write(self, write: bool) -> OpenOptions
Sets the write flag.
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more