pub enum SnapshotApplyResult {
Success,
Failure,
}Expand description
Result of applying a mutable snapshot.
Variants§
Success
The snapshot was applied successfully.
Failure
The snapshot could not be applied due to conflicts.
Implementations§
Source§impl SnapshotApplyResult
impl SnapshotApplyResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the result is successful.
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Check if the result is a failure.
Trait Implementations§
Source§impl Clone for SnapshotApplyResult
impl Clone for SnapshotApplyResult
Source§fn clone(&self) -> SnapshotApplyResult
fn clone(&self) -> SnapshotApplyResult
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 moreSource§impl Debug for SnapshotApplyResult
impl Debug for SnapshotApplyResult
impl Eq for SnapshotApplyResult
Source§impl PartialEq for SnapshotApplyResult
impl PartialEq for SnapshotApplyResult
Source§fn eq(&self, other: &SnapshotApplyResult) -> bool
fn eq(&self, other: &SnapshotApplyResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotApplyResult
Auto Trait Implementations§
impl Freeze for SnapshotApplyResult
impl RefUnwindSafe for SnapshotApplyResult
impl Send for SnapshotApplyResult
impl Sync for SnapshotApplyResult
impl Unpin for SnapshotApplyResult
impl UnsafeUnpin for SnapshotApplyResult
impl UnwindSafe for SnapshotApplyResult
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