#[non_exhaustive]pub enum MemoryAllocationPoolError {
TooManyEntries,
InvalidAuthority {
reason: &'static str,
},
ReservedAuthority,
InvalidKeyPrefix {
key_prefix: String,
},
OverlappingNamespaces {
existing_prefix: String,
candidate_prefix: String,
},
UnclaimedKey {
stable_key: StableKey,
},
AuthorityMismatch {
stable_key: StableKey,
requested_authority: String,
admitted_authority: String,
},
ExcludedSlot {
id: u8,
},
Slot(MemoryManagerSlotError),
}Expand description
MemoryAllocationPoolError
Invalid host configuration or a request outside admitted ownership/custody.
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.
TooManyEntries
InvalidAuthority
ReservedAuthority
InvalidKeyPrefix
OverlappingNamespaces
UnclaimedKey
AuthorityMismatch
ExcludedSlot
Slot(MemoryManagerSlotError)
Trait Implementations§
Source§impl Clone for MemoryAllocationPoolError
impl Clone for MemoryAllocationPoolError
Source§impl Debug for MemoryAllocationPoolError
impl Debug for MemoryAllocationPoolError
Source§impl Display for MemoryAllocationPoolError
impl Display for MemoryAllocationPoolError
impl Eq for MemoryAllocationPoolError
Source§impl Error for MemoryAllocationPoolError
impl Error for MemoryAllocationPoolError
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<MemoryAllocationPoolError> for BootstrapAdmissionError
impl From<MemoryAllocationPoolError> for BootstrapAdmissionError
Source§fn from(source: MemoryAllocationPoolError) -> Self
fn from(source: MemoryAllocationPoolError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryAllocationPoolError> for MemoryResolutionError
impl From<MemoryAllocationPoolError> for MemoryResolutionError
Source§fn from(source: MemoryAllocationPoolError) -> Self
fn from(source: MemoryAllocationPoolError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryManagerSlotError> for MemoryAllocationPoolError
impl From<MemoryManagerSlotError> for MemoryAllocationPoolError
Source§fn from(source: MemoryManagerSlotError) -> Self
fn from(source: MemoryManagerSlotError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for MemoryAllocationPoolError
Auto Trait Implementations§
impl Freeze for MemoryAllocationPoolError
impl RefUnwindSafe for MemoryAllocationPoolError
impl Send for MemoryAllocationPoolError
impl Sync for MemoryAllocationPoolError
impl Unpin for MemoryAllocationPoolError
impl UnsafeUnpin for MemoryAllocationPoolError
impl UnwindSafe for MemoryAllocationPoolError
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