#[non_exhaustive]pub enum DecisionLedgerError {
Show 14 variants
InvalidCapacity,
InvalidTimeRange,
NonFiniteReward,
PendingCapacityExceeded,
CompletedCapacityExceeded,
ValueTooLarge,
InvalidValue,
DecisionConflict,
UnknownDecision,
DuplicateFeedback,
FeedbackBeforeDecision,
FeedbackExpired,
GenerationMismatch,
ActionMismatch,
}Expand description
Validation and capacity failures. Every failure leaves the ledger intact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidCapacity
A configured capacity was zero.
InvalidTimeRange
Decision expiry preceded creation.
NonFiniteReward
A reward was NaN or infinite.
PendingCapacityExceeded
Pending storage is full; live decisions are not evicted implicitly.
CompletedCapacityExceeded
Tombstone storage is full; completed entries require explicit cleanup.
ValueTooLarge
A context or action exceeds the configured byte estimate.
InvalidValue
A context or action violates its type-specific semantic invariants.
DecisionConflict
The identifier exists with different immutable facts.
UnknownDecision
Feedback references no pending or completed identifier.
DuplicateFeedback
Feedback was already accepted for this identifier.
FeedbackBeforeDecision
Outcome timestamp precedes decision creation.
FeedbackExpired
Outcome timestamp is after the inclusive expiry boundary.
GenerationMismatch
Outcome generation differs from the recorded generation.
ActionMismatch
Outcome action differs from the selected action.
Trait Implementations§
Source§impl Clone for DecisionLedgerError
impl Clone for DecisionLedgerError
Source§fn clone(&self) -> DecisionLedgerError
fn clone(&self) -> DecisionLedgerError
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 DecisionLedgerError
impl Debug for DecisionLedgerError
Source§impl Display for DecisionLedgerError
impl Display for DecisionLedgerError
Source§impl Error for DecisionLedgerError
impl Error for DecisionLedgerError
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()