pub enum AllocationReservationError {
GenerationOverflow {
generation: u64,
},
InvalidSchemaMetadata {
stable_key: StableKey,
error: SchemaMetadataError,
},
StableKeySlotConflict {
stable_key: StableKey,
historical_slot: Box<AllocationSlotDescriptor>,
reserved_slot: Box<AllocationSlotDescriptor>,
},
SlotStableKeyConflict {
slot: Box<AllocationSlotDescriptor>,
historical_key: StableKey,
reserved_key: StableKey,
},
ActiveAllocation {
stable_key: StableKey,
slot: Box<AllocationSlotDescriptor>,
},
RetiredAllocation {
stable_key: StableKey,
slot: Box<AllocationSlotDescriptor>,
},
}Expand description
AllocationReservationError
Failure to stage a reservation generation.
Variants§
GenerationOverflow
Ledger generation cannot be advanced without overflow.
InvalidSchemaMetadata
A staged reservation carries invalid schema metadata.
Fields
§
error: SchemaMetadataErrorSchema metadata validation error.
StableKeySlotConflict
Stable key was historically bound to a different slot.
Fields
§
historical_slot: Box<AllocationSlotDescriptor>Historical slot for the stable key.
§
reserved_slot: Box<AllocationSlotDescriptor>Slot claimed by the reservation.
SlotStableKeyConflict
Slot was historically bound to a different stable key.
Fields
§
slot: Box<AllocationSlotDescriptor>Slot being reserved.
ActiveAllocation
Allocation already exists as an active record.
Fields
§
slot: Box<AllocationSlotDescriptor>Active allocation slot.
RetiredAllocation
Allocation was already retired and cannot be reserved.
Fields
§
slot: Box<AllocationSlotDescriptor>Retired allocation slot.
Trait Implementations§
Source§impl Clone for AllocationReservationError
impl Clone for AllocationReservationError
Source§fn clone(&self) -> AllocationReservationError
fn clone(&self) -> AllocationReservationError
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 AllocationReservationError
impl Debug for AllocationReservationError
Source§impl Display for AllocationReservationError
impl Display for AllocationReservationError
Source§impl Error for AllocationReservationError
impl Error for AllocationReservationError
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 PartialEq for AllocationReservationError
impl PartialEq for AllocationReservationError
Source§fn eq(&self, other: &AllocationReservationError) -> bool
fn eq(&self, other: &AllocationReservationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AllocationReservationError
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