pub enum KeyPinRestoreOutcome {
Restored {
origins: usize,
},
Unchanged,
Merged {
origins_added: usize,
keys_added: usize,
},
SkippedNewerSchema {
found: u8,
},
}Expand description
What folding a backup’s pinned histories into this library did.
Variants§
Restored
This library pinned nothing; the backup’s pin file was written byte for byte.
Unchanged
Every history the backup carries is already pinned here, or extended by the pin here: nothing was written.
Merged
This library’s pin was extended with what the backup carries.
Fields
SkippedNewerSchema
The backup’s pin file has a schema newer than this build reads, so it was left out and nothing was written. A newer artifact still restores its assets on an older build; the library re-pins each server on its next contact, as one that never pinned it would.
Trait Implementations§
Source§impl Clone for KeyPinRestoreOutcome
impl Clone for KeyPinRestoreOutcome
Source§fn clone(&self) -> KeyPinRestoreOutcome
fn clone(&self) -> KeyPinRestoreOutcome
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 KeyPinRestoreOutcome
Source§impl Debug for KeyPinRestoreOutcome
impl Debug for KeyPinRestoreOutcome
impl Eq for KeyPinRestoreOutcome
Source§impl PartialEq for KeyPinRestoreOutcome
impl PartialEq for KeyPinRestoreOutcome
Source§fn eq(&self, other: &KeyPinRestoreOutcome) -> bool
fn eq(&self, other: &KeyPinRestoreOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyPinRestoreOutcome
Auto Trait Implementations§
impl Freeze for KeyPinRestoreOutcome
impl RefUnwindSafe for KeyPinRestoreOutcome
impl Send for KeyPinRestoreOutcome
impl Sync for KeyPinRestoreOutcome
impl Unpin for KeyPinRestoreOutcome
impl UnsafeUnpin for KeyPinRestoreOutcome
impl UnwindSafe for KeyPinRestoreOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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