#[non_exhaustive]pub enum MemoryManagerLayoutError {
UnsupportedByteOrder,
ZeroBucketSize,
ReservedHeader,
BucketCount {
count: u16,
},
BucketTable {
index: u16,
},
VirtualExtent {
id: u8,
},
TruncatedBacking {
physical_pages: u64,
required_pages: u64,
},
ExtentOverflow,
RuntimeMismatch,
}Expand description
MemoryManagerLayoutError
Invalid or unsupported persisted manager metadata. No writes are performed
when reporting these failures. Memory implementations must obey 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.
UnsupportedByteOrder
This adapter supports the little-endian IC/current native layout only.
ZeroBucketSize
The persisted bucket size is zero.
ReservedHeader
Reserved header fields are not recognized by this adapter.
BucketCount
The allocated count exceeds the finite bucket table.
BucketTable
Allocated buckets must be a dense prefix and all later entries unused.
VirtualExtent
Virtual extent disagrees with the number of assigned buckets.
TruncatedBacking
Backing memory does not cover every assigned bucket.
ExtentOverflow
Backing size cannot be represented in bytes.
RuntimeMismatch
A live manager’s cached state differs from persisted metadata.
Trait Implementations§
Source§impl Clone for MemoryManagerLayoutError
impl Clone for MemoryManagerLayoutError
Source§fn clone(&self) -> MemoryManagerLayoutError
fn clone(&self) -> MemoryManagerLayoutError
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 MemoryManagerLayoutError
Source§impl Debug for MemoryManagerLayoutError
impl Debug for MemoryManagerLayoutError
Source§impl Display for MemoryManagerLayoutError
impl Display for MemoryManagerLayoutError
impl Eq for MemoryManagerLayoutError
Source§impl Error for MemoryManagerLayoutError
impl Error for MemoryManagerLayoutError
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()
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 PartialEq for MemoryManagerLayoutError
impl PartialEq for MemoryManagerLayoutError
impl StructuralPartialEq for MemoryManagerLayoutError
Auto Trait Implementations§
impl Freeze for MemoryManagerLayoutError
impl RefUnwindSafe for MemoryManagerLayoutError
impl Send for MemoryManagerLayoutError
impl Sync for MemoryManagerLayoutError
impl Unpin for MemoryManagerLayoutError
impl UnsafeUnpin for MemoryManagerLayoutError
impl UnwindSafe for MemoryManagerLayoutError
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