#[non_exhaustive]pub enum AllocationValidationError<P> {
LedgerIntegrity(LedgerIntegrityError),
Snapshot(DeclarationSnapshotError),
Policy(P),
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
AllocationValidationError
Failure to validate declarations against policy and historical ledger facts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LedgerIntegrity(LedgerIntegrityError)
Historical ledger was decoded or assembled with invalid committed state.
Snapshot(DeclarationSnapshotError)
Declaration snapshot was decoded or assembled with invalid DTOs.
Policy(P)
Policy adapter rejected the declaration.
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 current declaration.
SlotStableKeyConflict
Slot was historically bound to a different stable key.
Fields
slot: Box<AllocationSlotDescriptor>Slot claimed by the current declaration.
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 validation expected only move, reuse, or tombstone conflicts.
Fields
slot: Box<AllocationSlotDescriptor>Active allocation slot.
Trait Implementations§
Source§impl<P: Clone> Clone for AllocationValidationError<P>
impl<P: Clone> Clone for AllocationValidationError<P>
Source§fn clone(&self) -> AllocationValidationError<P>
fn clone(&self) -> AllocationValidationError<P>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<P: Debug> Debug for AllocationValidationError<P>
impl<P: Debug> Debug for AllocationValidationError<P>
Source§impl<P> Display for AllocationValidationError<P>
impl<P> Display for AllocationValidationError<P>
impl<P: Eq> Eq for AllocationValidationError<P>
Source§impl<P> Error for AllocationValidationError<P>
impl<P> Error for AllocationValidationError<P>
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<AllocationValidationError<RuntimePolicyError<P>>> for RuntimeBootstrapError<P>
impl<P> From<AllocationValidationError<RuntimePolicyError<P>>> for RuntimeBootstrapError<P>
Source§fn from(source: AllocationValidationError<RuntimePolicyError<P>>) -> Self
fn from(source: AllocationValidationError<RuntimePolicyError<P>>) -> Self
Source§impl<P: PartialEq> PartialEq for AllocationValidationError<P>
impl<P: PartialEq> PartialEq for AllocationValidationError<P>
Source§fn eq(&self, other: &AllocationValidationError<P>) -> bool
fn eq(&self, other: &AllocationValidationError<P>) -> bool
self and other values to be equal, and is used by ==.