#[non_exhaustive]pub enum AllocationStageError {
StaleValidatedAllocations {
validated_generation: u64,
ledger_generation: u64,
},
GenerationOverflow {
generation: u64,
},
TooManyDeclarations {
count: usize,
},
InvalidSchemaMetadata {
stable_key: StableKey,
error: SchemaMetadataError,
},
StableKeySlotConflict {
stable_key: StableKey,
historical_slot: Box<AllocationSlotDescriptor>,
declared_slot: Box<AllocationSlotDescriptor>,
},
SlotStableKeyConflict {
slot: Box<AllocationSlotDescriptor>,
historical_key: StableKey,
declared_key: StableKey,
},
RetiredAllocation {
stable_key: StableKey,
slot: Box<AllocationSlotDescriptor>,
},
UnexpectedActiveAllocationConflict {
stable_key: StableKey,
slot: Box<AllocationSlotDescriptor>,
},
}Expand description
AllocationStageError
Failure to stage a validated allocation generation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StaleValidatedAllocations
Validated declarations were produced against a different ledger generation.
Fields
GenerationOverflow
Ledger generation cannot be advanced without overflow.
TooManyDeclarations
Declaration count does not fit in durable generation diagnostics.
InvalidSchemaMetadata
A staged declaration 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.
declared_slot: Box<AllocationSlotDescriptor>Slot claimed by the declaration.
SlotStableKeyConflict
Slot was historically bound to a different stable key.
Fields
slot: Box<AllocationSlotDescriptor>Slot being declared.
RetiredAllocation
Current declaration attempted to revive a retired allocation.
Fields
slot: Box<AllocationSlotDescriptor>Retired allocation slot.
UnexpectedActiveAllocationConflict
Internal claim validation reported an active-allocation conflict where declaration staging expected only move, reuse, or tombstone conflicts.
Fields
slot: Box<AllocationSlotDescriptor>Active allocation slot.
Trait Implementations§
Source§impl Clone for AllocationStageError
impl Clone for AllocationStageError
Source§fn clone(&self) -> AllocationStageError
fn clone(&self) -> AllocationStageError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
Source§impl PartialEq for AllocationStageError
impl PartialEq for AllocationStageError
Source§fn eq(&self, other: &AllocationStageError) -> bool
fn eq(&self, other: &AllocationStageError) -> bool
self and other values to be equal, and is used by ==.