pub enum WriteStage {
Write,
Persist,
}Expand description
The stage of an atomic write that failed, returned by
WriteError::stage.
Variants§
Write
Writing the serialized value to the temporary file failed.
Persist
Creating the temporary file, syncing it to disk, or atomically renaming it to the destination failed.
Trait Implementations§
Source§impl Clone for WriteStage
impl Clone for WriteStage
Source§fn clone(&self) -> WriteStage
fn clone(&self) -> WriteStage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WriteStage
Source§impl Debug for WriteStage
impl Debug for WriteStage
impl Eq for WriteStage
Source§impl PartialEq for WriteStage
impl PartialEq for WriteStage
Source§fn eq(&self, other: &WriteStage) -> bool
fn eq(&self, other: &WriteStage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WriteStage
Auto Trait Implementations§
impl Freeze for WriteStage
impl RefUnwindSafe for WriteStage
impl Send for WriteStage
impl Sync for WriteStage
impl Unpin for WriteStage
impl UnsafeUnpin for WriteStage
impl UnwindSafe for WriteStage
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