#[non_exhaustive]pub enum RuntimeConstructionError {
InvalidBucketSize,
BucketSizeMismatch {
persisted: u16,
requested: u16,
},
Layout(MemoryManagerLayoutError),
ForeignMemory {
observed_magic: [u8; 3],
},
UnsupportedMemoryManagerVersion {
observed: u8,
supported: u8,
},
}Expand description
RuntimeConstructionError
Failure to construct a memory runtime without overwriting unrecognized backing memory.
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.
InvalidBucketSize
Zero pages cannot form a bucket.
BucketSizeMismatch
Explicit policy differs from the actual durable setting.
Layout(MemoryManagerLayoutError)
Persisted manager metadata failed bounded validation.
ForeignMemory
Nonempty backing memory does not contain a MemoryManager header.
UnsupportedMemoryManagerVersion
Backing memory contains an unsupported MemoryManager layout version.
Trait Implementations§
Source§impl Clone for RuntimeConstructionError
impl Clone for RuntimeConstructionError
Source§fn clone(&self) -> RuntimeConstructionError
fn clone(&self) -> RuntimeConstructionError
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 moreimpl Copy for RuntimeConstructionError
Source§impl Debug for RuntimeConstructionError
impl Debug for RuntimeConstructionError
Source§impl Display for RuntimeConstructionError
impl Display for RuntimeConstructionError
impl Eq for RuntimeConstructionError
Source§impl Error for RuntimeConstructionError
impl Error for RuntimeConstructionError
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<MemoryManagerLayoutError> for RuntimeConstructionError
impl From<MemoryManagerLayoutError> for RuntimeConstructionError
Source§fn from(source: MemoryManagerLayoutError) -> Self
fn from(source: MemoryManagerLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeConstructionError> for RuntimeStateError
impl From<RuntimeConstructionError> for RuntimeStateError
Source§fn from(source: RuntimeConstructionError) -> Self
fn from(source: RuntimeConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeConstructionError> for RuntimeDiagnosticError
impl From<RuntimeConstructionError> for RuntimeDiagnosticError
Source§fn from(source: RuntimeConstructionError) -> Self
fn from(source: RuntimeConstructionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeConstructionError
impl PartialEq for RuntimeConstructionError
impl StructuralPartialEq for RuntimeConstructionError
Auto Trait Implementations§
impl Freeze for RuntimeConstructionError
impl RefUnwindSafe for RuntimeConstructionError
impl Send for RuntimeConstructionError
impl Sync for RuntimeConstructionError
impl Unpin for RuntimeConstructionError
impl UnsafeUnpin for RuntimeConstructionError
impl UnwindSafe for RuntimeConstructionError
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