#[non_exhaustive]pub enum AllocationReservationError {
Integrity(LedgerIntegrityError),
GenerationOverflow {
generation: u64,
},
TooManyReservations {
count: usize,
},
StableKeySlotConflict {
stable_key: StableKey,
historical_slot: MemoryManagerSlot,
reserved_slot: MemoryManagerSlot,
},
SlotStableKeyConflict {
slot: MemoryManagerSlot,
historical_key: StableKey,
reserved_key: StableKey,
},
ActiveAllocation {
stable_key: StableKey,
slot: MemoryManagerSlot,
},
RetiredAllocation {
stable_key: StableKey,
slot: MemoryManagerSlot,
},
}Expand description
AllocationReservationError
Failure to stage a reservation generation.
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.
Integrity(LedgerIntegrityError)
GenerationOverflow
Ledger generation cannot be advanced without overflow.
TooManyReservations
Reservation count exceeds the usable allocation-slot domain.
StableKeySlotConflict
Stable key was historically bound to a different slot.
Fields
§
historical_slot: MemoryManagerSlotHistorical slot for the stable key.
§
reserved_slot: MemoryManagerSlotSlot claimed by the reservation.
SlotStableKeyConflict
Slot was historically bound to a different stable key.
Fields
§
slot: MemoryManagerSlotSlot being reserved.
ActiveAllocation
Allocation already exists as an active record.
RetiredAllocation
Allocation was already retired and cannot be reserved.
Trait Implementations§
Source§impl Clone for AllocationReservationError
impl Clone for AllocationReservationError
Source§impl Debug for AllocationReservationError
impl Debug for AllocationReservationError
Source§impl Display for AllocationReservationError
impl Display for AllocationReservationError
impl Eq for AllocationReservationError
Source§impl Error for AllocationReservationError
impl Error for AllocationReservationError
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<LedgerIntegrityError> for AllocationReservationError
impl From<LedgerIntegrityError> for AllocationReservationError
Source§fn from(source: LedgerIntegrityError) -> Self
fn from(source: LedgerIntegrityError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for AllocationReservationError
Auto Trait Implementations§
impl Freeze for AllocationReservationError
impl RefUnwindSafe for AllocationReservationError
impl Send for AllocationReservationError
impl Sync for AllocationReservationError
impl Unpin for AllocationReservationError
impl UnsafeUnpin for AllocationReservationError
impl UnwindSafe for AllocationReservationError
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