pub enum MemoryRegistryError {
InvalidDeclaration {
stable_key: String,
reason: &'static str,
},
RangeAuthorityViolation {
stable_key: String,
id: u8,
reason: &'static str,
},
LedgerCorrupt {
reason: &'static str,
},
}Expand description
MemoryRegistryError
Canic-facing errors returned while bootstrapping or reading the
ic-memory allocation ledger.
Variants§
InvalidDeclaration
A declaration was rejected before or during ic-memory validation.
RangeAuthorityViolation
The stable key namespace and memory ID range do not match.
Fields
LedgerCorrupt
The persisted ABI ledger cannot be validated.
Trait Implementations§
Source§impl Debug for MemoryRegistryError
impl Debug for MemoryRegistryError
Source§impl Display for MemoryRegistryError
impl Display for MemoryRegistryError
Source§impl Error for MemoryRegistryError
impl Error for MemoryRegistryError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for MemoryRegistryError
impl RefUnwindSafe for MemoryRegistryError
impl Send for MemoryRegistryError
impl Sync for MemoryRegistryError
impl Unpin for MemoryRegistryError
impl UnsafeUnpin for MemoryRegistryError
impl UnwindSafe for MemoryRegistryError
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