#[non_exhaustive]pub enum RuntimeCatalogError {
DigestMismatch {
edition: CatalogEdition,
expected: &'static str,
actual: String,
},
Archive(ArchiveError),
NotInstalled(CatalogEdition),
UnavailableEdition(CatalogEdition),
UnsupportedProfile(CatalogProfile),
Patch(PatchError),
}Expand description
Why a runtime catalog cannot be installed or read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DigestMismatch
The bytes are not the pinned snapshot of this edition or the pinned container: a different edition’s file, another version, or a damaged download.
Fields
§
edition: CatalogEditionThe edition the bytes were offered for.
Archive(ArchiveError)
The pinned bytes failed to decode (a build whose decoder disagrees with its own pins).
NotInstalled(CatalogEdition)
No catalog of this edition has been installed yet.
The edition has no built-in corrected profile (IFC2X3 TC1).
UnsupportedProfile(CatalogProfile)
Only the official and corrected profiles are loaded this way.
Patch(PatchError)
Applying the built-in correction ledger failed.
Trait Implementations§
Source§impl Clone for RuntimeCatalogError
impl Clone for RuntimeCatalogError
Source§fn clone(&self) -> RuntimeCatalogError
fn clone(&self) -> RuntimeCatalogError
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 RuntimeCatalogError
impl Debug for RuntimeCatalogError
Source§impl Display for RuntimeCatalogError
impl Display for RuntimeCatalogError
impl Eq for RuntimeCatalogError
Source§impl Error for RuntimeCatalogError
impl Error for RuntimeCatalogError
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<ArchiveError> for RuntimeCatalogError
impl From<ArchiveError> for RuntimeCatalogError
Source§fn from(source: ArchiveError) -> Self
fn from(source: ArchiveError) -> Self
Converts to this type from the input type.
Source§impl From<PatchError> for RuntimeCatalogError
impl From<PatchError> for RuntimeCatalogError
Source§fn from(source: PatchError) -> Self
fn from(source: PatchError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeCatalogError
impl PartialEq for RuntimeCatalogError
impl StructuralPartialEq for RuntimeCatalogError
Auto Trait Implementations§
impl Freeze for RuntimeCatalogError
impl RefUnwindSafe for RuntimeCatalogError
impl Send for RuntimeCatalogError
impl Sync for RuntimeCatalogError
impl Unpin for RuntimeCatalogError
impl UnsafeUnpin for RuntimeCatalogError
impl UnwindSafe for RuntimeCatalogError
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