#[non_exhaustive]pub enum AllocationStageError {
Integrity(LedgerIntegrityError),
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
Integrity(LedgerIntegrityError)
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§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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()