pub enum BackupError {
Format(String),
Auth(&'static str),
Corrupt(String),
AmkIncomplete(String),
AttestationKeyPinsDiverge {
origin: String,
only_carried: usize,
only_local: usize,
},
AttestationKeyPins(String),
Crypto(CryptoError),
}Expand description
Errors from backup export/restore and recovery.
Variants§
Format(String)
A reader/writer or archive structural failure.
Auth(&'static str)
MANIFEST HMAC or exporter signature failed (tamper).
Corrupt(String)
An entry’s content hash did not match the manifest (corruption).
AmkIncomplete(String)
The AMK ledger is missing an amk_version an included asset references.
AttestationKeyPinsDiverge
The artifact pins an attestation-key history for origin that diverges from the one the
target library pins: each holds a key the other lacks. Neither is overwritten, and the
restore is refused before it writes anything.
Fields
AttestationKeyPins(String)
The artifact’s pinned attestation-key history could not be read, decoded or restored.
Crypto(CryptoError)
Underlying cryptographic failure.
Trait Implementations§
Source§impl Debug for BackupError
impl Debug for BackupError
Source§impl Display for BackupError
impl Display for BackupError
impl Eq for BackupError
Source§impl Error for BackupError
impl Error for BackupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CryptoError> for BackupError
impl From<CryptoError> for BackupError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BackupError
impl PartialEq for BackupError
Source§fn eq(&self, other: &BackupError) -> bool
fn eq(&self, other: &BackupError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackupError
Auto Trait Implementations§
impl Freeze for BackupError
impl RefUnwindSafe for BackupError
impl Send for BackupError
impl Sync for BackupError
impl Unpin for BackupError
impl UnsafeUnpin for BackupError
impl UnwindSafe for BackupError
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
§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