pub enum WriteMode {
AlwaysAppend,
AppendOrCreate,
CreateOrTruncate,
AlwaysCreate,
}Expand description
File Already Exists File Does not Exist
AA Append Dies
AoC Append Create
CoT Truncate Create
AC Dies CreateVariants§
Trait Implementations§
source§impl From<WriteMode> for OpenOptions
impl From<WriteMode> for OpenOptions
source§fn from(m: WriteMode) -> OpenOptions
fn from(m: WriteMode) -> OpenOptions
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WriteMode
impl RefUnwindSafe for WriteMode
impl Send for WriteMode
impl Sync for WriteMode
impl Unpin for WriteMode
impl UnwindSafe for WriteMode
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