pub enum NamedRootUpdate {
Applied,
Conflict {
current: Option<Tree>,
},
}Expand description
Result of a named-root compare-and-swap through a crate::Prolly manager.
Variants§
Applied
The expected tree matched and the update was applied.
Conflict
The expected tree did not match the current named root.
Implementations§
Source§impl NamedRootUpdate
impl NamedRootUpdate
Sourcepub fn is_applied(&self) -> bool
pub fn is_applied(&self) -> bool
Whether the update was applied.
Sourcepub fn is_conflict(&self) -> bool
pub fn is_conflict(&self) -> bool
Whether the update failed because the current tree differed.
Trait Implementations§
Source§impl Clone for NamedRootUpdate
impl Clone for NamedRootUpdate
Source§fn clone(&self) -> NamedRootUpdate
fn clone(&self) -> NamedRootUpdate
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 NamedRootUpdate
impl Debug for NamedRootUpdate
Source§impl From<ManifestUpdate> for NamedRootUpdate
impl From<ManifestUpdate> for NamedRootUpdate
Source§fn from(update: ManifestUpdate) -> Self
fn from(update: ManifestUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NamedRootUpdate
impl PartialEq for NamedRootUpdate
impl StructuralPartialEq for NamedRootUpdate
Auto Trait Implementations§
impl Freeze for NamedRootUpdate
impl RefUnwindSafe for NamedRootUpdate
impl Send for NamedRootUpdate
impl Sync for NamedRootUpdate
impl Unpin for NamedRootUpdate
impl UnsafeUnpin for NamedRootUpdate
impl UnwindSafe for NamedRootUpdate
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more