pub enum CompactionError {
Show 19 variants
UnsupportedSchema(String),
UnsupportedAlgorithm(String),
InvalidBudget,
UnsupportedTokenEstimator(String),
UsageAccounting,
BudgetExceeded,
Serialization,
InvalidDigest(String),
EmptyPlan,
EmptySelectionId,
EmptySelection(String),
DuplicateSelection(String),
SelectionOrder,
RequiredSelectionOmitted(String),
MemoryLifecycleMissing(String),
UnexpectedMemoryLifecycle(String),
PlanDigest,
PlanBinding,
SelectionSets,
}Expand description
Compaction contract or receipt validation failure.
Variants§
UnsupportedSchema(String)
Unsupported public schema identifier.
UnsupportedAlgorithm(String)
Unsupported deterministic algorithm identifier.
InvalidBudget
Context budget arithmetic or a hard limit is invalid.
UnsupportedTokenEstimator(String)
Unsupported token-estimator identifier.
UsageAccounting
Usage categories do not sum to the committed input total.
BudgetExceeded
Resulting context exceeds the provider token or byte boundary.
Serialization
A public compaction contract could not be serialized canonically.
InvalidDigest(String)
A required digest is not canonical lowercase BLAKE3 hex.
EmptyPlan
A plan contains no considered context.
EmptySelectionId
A selection identifier is empty.
EmptySelection(String)
A selection has no measurable public content.
DuplicateSelection(String)
A selection identifier occurs more than once.
SelectionOrder
Selections are not in deterministic priority/rank/identifier order.
RequiredSelectionOmitted(String)
Fail-closed pinned context was omitted.
MemoryLifecycleMissing(String)
A memory selection lacks a lifecycle state.
UnexpectedMemoryLifecycle(String)
A non-memory selection carries an unrelated lifecycle state.
PlanDigest
Receipt plan digest does not match the embedded plan.
PlanBinding
Receipt input or workspace binding disagrees with its plan.
SelectionSets
Receipt retained/omitted identifier sets disagree with the plan.
Trait Implementations§
Source§impl Clone for CompactionError
impl Clone for CompactionError
Source§fn clone(&self) -> CompactionError
fn clone(&self) -> CompactionError
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 CompactionError
impl Debug for CompactionError
Source§impl Display for CompactionError
impl Display for CompactionError
impl Eq for CompactionError
Source§impl Error for CompactionError
impl Error for CompactionError
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()