#[non_exhaustive]pub enum StaticMemoryDeclarationError {
RegistryPoisoned,
RegistrySealed,
ReentrantSealing,
InconsistentLifecycle,
EagerInitPanicked,
Declaration(DeclarationSnapshotError),
Range(MemoryManagerRangeAuthorityError),
SnapshotFingerprintEncoding {
message: String,
},
InvalidAuthority {
reason: &'static str,
},
ReservedAuthority {
authority: String,
},
ReservedStableKey {
stable_key: String,
},
}Expand description
StaticMemoryDeclarationError
Failure to register or collect static allocation declarations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RegistryPoisoned
Static declaration registry lock was poisoned.
RegistrySealed
Bootstrap already sealed the declaration snapshot.
ReentrantSealing
Snapshot sealing was called recursively from an eager hook.
InconsistentLifecycle
Internal declaration-registry lifecycle state was inconsistent.
EagerInitPanicked
A deferred eager initialization hook panicked while declarations were sealing.
Declaration(DeclarationSnapshotError)
Declaration validation failed.
Range(MemoryManagerRangeAuthorityError)
Range authority validation failed.
SnapshotFingerprintEncoding
Canonical sealed-snapshot diagnostic fingerprint encoding failed.
InvalidAuthority
External registration attempted to use an invalid authority identifier.
ReservedAuthority
External registration attempted to impersonate the internal authority.
Fields
Reserved authority identifier.
ReservedStableKey
External registration attempted to claim the internal stable-key namespace.
Trait Implementations§
Source§impl Clone for StaticMemoryDeclarationError
impl Clone for StaticMemoryDeclarationError
Source§fn clone(&self) -> StaticMemoryDeclarationError
fn clone(&self) -> StaticMemoryDeclarationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StaticMemoryDeclarationError
impl Debug for StaticMemoryDeclarationError
impl Eq for StaticMemoryDeclarationError
Source§impl Error for StaticMemoryDeclarationError
impl Error for StaticMemoryDeclarationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()