Enum atomicwrites::OverwriteBehavior
source · pub enum OverwriteBehavior {
AllowOverwrite,
DisallowOverwrite,
}
Expand description
Whether to allow overwriting if the target file exists.
Variants§
AllowOverwrite
Overwrite files silently.
DisallowOverwrite
Don’t overwrite files. AtomicFile.write
will raise errors for such conditions only after
you’ve already written your data.
Trait Implementations§
source§impl Clone for OverwriteBehavior
impl Clone for OverwriteBehavior
source§fn clone(&self) -> OverwriteBehavior
fn clone(&self) -> OverwriteBehavior
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 moreimpl Copy for OverwriteBehavior
Auto Trait Implementations§
impl Freeze for OverwriteBehavior
impl RefUnwindSafe for OverwriteBehavior
impl Send for OverwriteBehavior
impl Sync for OverwriteBehavior
impl Unpin for OverwriteBehavior
impl UnwindSafe for OverwriteBehavior
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)