pub enum UpdateOutcome {
Unchanged,
Updated {
from: String,
to: String,
},
NotStored,
}Expand description
Result of an update.
Variants§
Unchanged
The re-resolved digest matched the stored one; nothing changed.
Updated
A newer artifact was pulled. Digests are sha256:....
NotStored
The ref is not in the store.
Trait Implementations§
Source§impl Clone for UpdateOutcome
impl Clone for UpdateOutcome
Source§fn clone(&self) -> UpdateOutcome
fn clone(&self) -> UpdateOutcome
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 UpdateOutcome
impl Debug for UpdateOutcome
Source§impl PartialEq for UpdateOutcome
impl PartialEq for UpdateOutcome
Source§fn eq(&self, other: &UpdateOutcome) -> bool
fn eq(&self, other: &UpdateOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdateOutcome
impl StructuralPartialEq for UpdateOutcome
Auto Trait Implementations§
impl Freeze for UpdateOutcome
impl RefUnwindSafe for UpdateOutcome
impl Send for UpdateOutcome
impl Sync for UpdateOutcome
impl Unpin for UpdateOutcome
impl UnsafeUnpin for UpdateOutcome
impl UnwindSafe for UpdateOutcome
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