#[non_exhaustive]pub enum AllocationStageError {
Integrity(LedgerIntegrityError),
StaleValidatedAllocations {
validated_generation: u64,
ledger_generation: u64,
},
StableKeySlotConflict {
stable_key: StableKey,
historical_slot: AllocationSlotDescriptor,
declared_slot: AllocationSlotDescriptor,
},
SlotStableKeyConflict {
slot: AllocationSlotDescriptor,
historical_key: StableKey,
declared_key: StableKey,
},
RetiredAllocation {
stable_key: StableKey,
slot: AllocationSlotDescriptor,
},
}Expand description
AllocationStageError
Failure to stage a validated allocation 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)
StaleValidatedAllocations
Validated declarations were produced against a different ledger generation.
Fields
StableKeySlotConflict
Stable key was historically bound to a different slot.
Fields
§
historical_slot: AllocationSlotDescriptorHistorical slot for the stable key.
§
declared_slot: AllocationSlotDescriptorSlot claimed by the declaration.
SlotStableKeyConflict
Slot was historically bound to a different stable key.
Fields
§
slot: AllocationSlotDescriptorSlot being declared.
RetiredAllocation
Current declaration attempted to revive a retired allocation.
Fields
§
slot: AllocationSlotDescriptorRetired allocation slot.
Trait Implementations§
Source§impl Clone for AllocationStageError
impl Clone for AllocationStageError
Source§impl Debug for AllocationStageError
impl Debug for AllocationStageError
Source§impl Display for AllocationStageError
impl Display for AllocationStageError
impl Eq for AllocationStageError
Source§impl Error for AllocationStageError
impl Error for AllocationStageError
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<P> From<AllocationStageError> for RuntimeBootstrapError<P>
impl<P> From<AllocationStageError> for RuntimeBootstrapError<P>
Source§fn from(source: AllocationStageError) -> Self
fn from(source: AllocationStageError) -> Self
Converts to this type from the input type.
Source§impl From<LedgerIntegrityError> for AllocationStageError
impl From<LedgerIntegrityError> for AllocationStageError
Source§fn from(source: LedgerIntegrityError) -> Self
fn from(source: LedgerIntegrityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AllocationStageError
impl PartialEq for AllocationStageError
impl StructuralPartialEq for AllocationStageError
Auto Trait Implementations§
impl Freeze for AllocationStageError
impl RefUnwindSafe for AllocationStageError
impl Send for AllocationStageError
impl Sync for AllocationStageError
impl Unpin for AllocationStageError
impl UnsafeUnpin for AllocationStageError
impl UnwindSafe for AllocationStageError
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