#[non_exhaustive]pub enum LeanLoaderDiagnosticCode {
MissingManifest,
MalformedManifest,
UnsupportedManifestSchema,
MissingPrimaryDylib,
MissingTransitiveDependency,
UnsupportedArchitecture,
UnsupportedToolchainFingerprint,
StaleManifest,
MissingInitializer,
MissingImportedSymbol,
}Expand description
Stable preflight diagnostic codes for manifest-backed capability loading.
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.
MissingManifest
The manifest path was absent, unreadable, or pointed at a missing file.
MalformedManifest
The manifest was not valid JSON or missed required fields.
UnsupportedManifestSchema
The manifest schema version is newer or otherwise unsupported.
MissingPrimaryDylib
The manifest’s primary capability dylib is missing.
MissingTransitiveDependency
A dependency dylib named by the manifest is missing.
UnsupportedArchitecture
A dylib could not be parsed as a native object for this platform.
UnsupportedToolchainFingerprint
The manifest was produced by an unsupported or mismatched Lean toolchain.
StaleManifest
A manifest appears older than the build artifact it describes.
MissingInitializer
The root module initializer named by the manifest is not exported.
MissingImportedSymbol
A Lean/imported symbol is not supplied by the manifest dependency set.
Implementations§
Trait Implementations§
Source§impl Clone for LeanLoaderDiagnosticCode
impl Clone for LeanLoaderDiagnosticCode
Source§fn clone(&self) -> LeanLoaderDiagnosticCode
fn clone(&self) -> LeanLoaderDiagnosticCode
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 LeanLoaderDiagnosticCode
impl Debug for LeanLoaderDiagnosticCode
Source§impl Display for LeanLoaderDiagnosticCode
impl Display for LeanLoaderDiagnosticCode
Source§impl Hash for LeanLoaderDiagnosticCode
impl Hash for LeanLoaderDiagnosticCode
Source§impl PartialEq for LeanLoaderDiagnosticCode
impl PartialEq for LeanLoaderDiagnosticCode
Source§fn eq(&self, other: &LeanLoaderDiagnosticCode) -> bool
fn eq(&self, other: &LeanLoaderDiagnosticCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeanLoaderDiagnosticCode
impl Eq for LeanLoaderDiagnosticCode
impl StructuralPartialEq for LeanLoaderDiagnosticCode
Auto Trait Implementations§
impl Freeze for LeanLoaderDiagnosticCode
impl RefUnwindSafe for LeanLoaderDiagnosticCode
impl Send for LeanLoaderDiagnosticCode
impl Sync for LeanLoaderDiagnosticCode
impl Unpin for LeanLoaderDiagnosticCode
impl UnsafeUnpin for LeanLoaderDiagnosticCode
impl UnwindSafe for LeanLoaderDiagnosticCode
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