pub enum OpenSettings {
CreateIfNotExists,
ErrorIfNotExists,
}
Expand description
OpenSettings provides the two options for opening a file in the event that the file does not exist: create the file and return an error.
Variants§
CreateIfNotExists
A new file will be created if the file does not exist.
ErrorIfNotExists
An error will be returned if the file does not exist.
Auto Trait Implementations§
impl Freeze for OpenSettings
impl RefUnwindSafe for OpenSettings
impl Send for OpenSettings
impl Sync for OpenSettings
impl Unpin for OpenSettings
impl UnwindSafe for OpenSettings
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