pub enum RuntimeOpenError {
NotBootstrapped,
RuntimeLockPoisoned,
StableKey(StableKeyError),
StableKeyNotValidated(String),
MemoryManagerSlot(MemoryManagerSlotError),
MemoryIdMismatch {
stable_key: String,
validated_id: u8,
requested_id: u8,
},
}Expand description
RuntimeOpenError
Failure to open a validated allocation through the default runtime substrate.
Variants§
NotBootstrapped
Runtime bootstrap has not published validated allocations.
RuntimeLockPoisoned
Runtime state lock was poisoned.
StableKey(StableKeyError)
Stable-key grammar failure.
StableKeyNotValidated(String)
The stable key was not present in the validated declaration set.
MemoryManagerSlot(MemoryManagerSlotError)
The validated slot is not a usable MemoryManager ID.
MemoryIdMismatch
The requested memory ID does not match the validated stable-key binding.
Trait Implementations§
Source§impl Clone for RuntimeOpenError
impl Clone for RuntimeOpenError
Source§fn clone(&self) -> RuntimeOpenError
fn clone(&self) -> RuntimeOpenError
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 RuntimeOpenError
impl Debug for RuntimeOpenError
Source§impl Display for RuntimeOpenError
impl Display for RuntimeOpenError
Source§impl Error for RuntimeOpenError
impl Error for RuntimeOpenError
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<MemoryManagerSlotError> for RuntimeOpenError
impl From<MemoryManagerSlotError> for RuntimeOpenError
Source§fn from(source: MemoryManagerSlotError) -> Self
fn from(source: MemoryManagerSlotError) -> Self
Converts to this type from the input type.
Source§impl From<StableKeyError> for RuntimeOpenError
impl From<StableKeyError> for RuntimeOpenError
Source§fn from(source: StableKeyError) -> Self
fn from(source: StableKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeOpenError
impl PartialEq for RuntimeOpenError
Source§fn eq(&self, other: &RuntimeOpenError) -> bool
fn eq(&self, other: &RuntimeOpenError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RuntimeOpenError
impl StructuralPartialEq for RuntimeOpenError
Auto Trait Implementations§
impl Freeze for RuntimeOpenError
impl RefUnwindSafe for RuntimeOpenError
impl Send for RuntimeOpenError
impl Sync for RuntimeOpenError
impl Unpin for RuntimeOpenError
impl UnsafeUnpin for RuntimeOpenError
impl UnwindSafe for RuntimeOpenError
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