pub enum ManifestUpdate {
Applied,
Conflict {
current: Option<RootManifest>,
},
}Expand description
Result of a named-root compare-and-swap update.
Variants§
Applied
The expected manifest matched and the update was applied.
Conflict
The expected manifest did not match the current manifest.
Fields
§
current: Option<RootManifest>Current manifest stored under the requested name.
Implementations§
Source§impl ManifestUpdate
impl ManifestUpdate
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 manifest differed.
Sourcepub fn current(&self) -> Option<&RootManifest>
pub fn current(&self) -> Option<&RootManifest>
Current manifest for conflicts, or None for applied updates.
Trait Implementations§
Source§impl Clone for ManifestUpdate
impl Clone for ManifestUpdate
Source§fn clone(&self) -> ManifestUpdate
fn clone(&self) -> ManifestUpdate
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 ManifestUpdate
impl Debug for ManifestUpdate
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 ManifestUpdate
impl PartialEq for ManifestUpdate
impl StructuralPartialEq for ManifestUpdate
Auto Trait Implementations§
impl Freeze for ManifestUpdate
impl RefUnwindSafe for ManifestUpdate
impl Send for ManifestUpdate
impl Sync for ManifestUpdate
impl Unpin for ManifestUpdate
impl UnsafeUnpin for ManifestUpdate
impl UnwindSafe for ManifestUpdate
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