pub enum Excl {
Truncate,
MustNotExist,
}Expand description
Whether a create may land on an existing file.
Variants§
Truncate
O_TRUNC — replace the contents of whatever is there.
MustNotExist
O_EXCL — fail if anything is there at all.
Trait Implementations§
impl Copy for Excl
impl Eq for Excl
impl StructuralPartialEq for Excl
Auto Trait Implementations§
impl Freeze for Excl
impl RefUnwindSafe for Excl
impl Send for Excl
impl Sync for Excl
impl Unpin for Excl
impl UnsafeUnpin for Excl
impl UnwindSafe for Excl
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