pub enum InstallError {
Show 18 variants
Index(IndexError),
Source(SourceError),
Verify(VerifyError),
Manifest(ManifestError),
DigestMismatch {
pinned: String,
got: String,
},
LayerMismatch {
pinned: String,
got: String,
},
ChannelMismatch {
pinned: String,
got: String,
},
Rollback {
line: String,
presented: u64,
high_water: u64,
},
RollbackConsentRefused {
line: String,
presented: u64,
high_water: u64,
why: String,
},
FirstContactNeedsPrimary {
line: String,
},
IndexFirstContactNeedsPrimary {
line: String,
},
LineUnknownForMirror {
why: String,
},
BelowFloor {
line: String,
presented: u64,
floor: u64,
},
BlobDigestMismatch {
tool: String,
digest: String,
},
UnnamedEntry {
digest: String,
},
NoPlatformEntry {
layer: String,
platform: String,
},
Store(StoreError),
State(RollbackError),
}Variants§
Index(IndexError)
Source(SourceError)
Verify(VerifyError)
Manifest(ManifestError)
DigestMismatch
LayerMismatch
ChannelMismatch
Rollback
RollbackConsentRefused
FirstContactNeedsPrimary
IndexFirstContactNeedsPrimary
LineUnknownForMirror
BelowFloor
BlobDigestMismatch
UnnamedEntry
NoPlatformEntry
Store(StoreError)
State(RollbackError)
Implementations§
Source§impl InstallError
impl InstallError
Sourcepub fn fails_over(&self) -> bool
pub fn fails_over(&self) -> bool
May ANOTHER source of the same realm be asked after this failure? (REQ-MIRROR-002 clause 2.)
Only when this source’s BYTES are the problem: unavailable, not authentic, malformed, or substituted. A verified verdict about genuine bytes (rollback, floor, no platform entry) or a local failure is TERMINAL: asking a lagging mirror afterwards would hand the same machine a second chance against a lower bar, and failover itself would become the freeze/rollback attack.
An exhaustive match with no _ arm, so a new variant cannot be added
without deciding which side of that line it is on.
Trait Implementations§
Source§impl Debug for InstallError
impl Debug for InstallError
Source§impl Display for InstallError
impl Display for InstallError
Source§impl Error for InstallError
impl Error for InstallError
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<IndexError> for InstallError
impl From<IndexError> for InstallError
Source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
Source§impl From<ManifestError> for InstallError
impl From<ManifestError> for InstallError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Source§impl From<RollbackError> for InstallError
impl From<RollbackError> for InstallError
Source§fn from(source: RollbackError) -> Self
fn from(source: RollbackError) -> Self
Converts to this type from the input type.
Source§impl From<SourceError> for InstallError
impl From<SourceError> for InstallError
Source§fn from(source: SourceError) -> Self
fn from(source: SourceError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for InstallError
impl From<StoreError> for InstallError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyError> for InstallError
impl From<VerifyError> for InstallError
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InstallError
impl !UnwindSafe for InstallError
impl Forget for InstallError
impl Freeze for InstallError
impl Move for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnsafeUnpin for InstallError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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