#[non_exhaustive]pub enum MemoryDeclarationError {
TooManyDeclarations,
DuplicateRequest {
stable_key: StableKey,
},
Declaration(DeclarationSnapshotError),
InvalidAuthority {
reason: &'static str,
},
ReservedAuthority {
authority: String,
},
ReservedStableKey {
stable_key: String,
},
}Expand description
MemoryDeclarationError
Failure to construct a complete allocation declaration snapshot.
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.
TooManyDeclarations
DuplicateRequest
Declaration(DeclarationSnapshotError)
Declaration validation 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 MemoryDeclarationError
impl Clone for MemoryDeclarationError
Source§impl Debug for MemoryDeclarationError
impl Debug for MemoryDeclarationError
Source§impl Display for MemoryDeclarationError
impl Display for MemoryDeclarationError
impl Eq for MemoryDeclarationError
Source§impl Error for MemoryDeclarationError
impl Error for MemoryDeclarationError
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<DeclarationSnapshotError> for MemoryDeclarationError
impl From<DeclarationSnapshotError> for MemoryDeclarationError
Source§fn from(source: DeclarationSnapshotError) -> Self
fn from(source: DeclarationSnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryDeclarationError> for BootstrapAdmissionError
impl From<MemoryDeclarationError> for BootstrapAdmissionError
Source§fn from(source: MemoryDeclarationError) -> Self
fn from(source: MemoryDeclarationError) -> Self
Converts to this type from the input type.
Source§impl<P> From<MemoryDeclarationError> for RuntimeBootstrapError<P>
impl<P> From<MemoryDeclarationError> for RuntimeBootstrapError<P>
Source§fn from(source: MemoryDeclarationError) -> Self
fn from(source: MemoryDeclarationError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryDeclarationError> for RuntimeDiagnosticError
impl From<MemoryDeclarationError> for RuntimeDiagnosticError
Source§fn from(source: MemoryDeclarationError) -> Self
fn from(source: MemoryDeclarationError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryDeclarationError> for MemoryResolutionError
impl From<MemoryDeclarationError> for MemoryResolutionError
Source§fn from(source: MemoryDeclarationError) -> Self
fn from(source: MemoryDeclarationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryDeclarationError
impl PartialEq for MemoryDeclarationError
impl StructuralPartialEq for MemoryDeclarationError
Auto Trait Implementations§
impl Freeze for MemoryDeclarationError
impl RefUnwindSafe for MemoryDeclarationError
impl Send for MemoryDeclarationError
impl Sync for MemoryDeclarationError
impl Unpin for MemoryDeclarationError
impl UnsafeUnpin for MemoryDeclarationError
impl UnwindSafe for MemoryDeclarationError
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