pub enum CarrierError {
SchemaAlreadyRegistered {
catalog_sha: String,
solver_identity: String,
},
Allocation(XlogError),
ZeroCapacity {
dimension: &'static str,
},
SchemaNotRegistered,
SignaturesAlreadyBound,
SignatureShapeMismatch {
side: &'static str,
expected_words: usize,
got_words: usize,
},
SignaturesUnbound,
FeasibilityNotSolved,
AbstainOutOfRange {
abstain_label: u32,
labels: usize,
},
KernelUnavailable {
detail: String,
},
Launch(XlogError),
Solver(SolverError),
}Expand description
Typed carrier errors. Refusals are concrete variants — callers match on the variant, never on message text.
Variants§
SchemaAlreadyRegistered
A schema is already registered for this carrier session; registration is once-per-session and never silently rebinds live buffers.
Fields
Allocation(XlogError)
Device allocation through the runtime failed.
ZeroCapacity
A capacity dimension is zero. A carrier with no entities, lanes, candidates, or labels cannot participate in a solve; silently clamping the dimension would hide the caller’s bug.
SchemaNotRegistered
Signature binding or solving was attempted before schema registration; masks are catalog-bound, so the catalog anchor must be fixed first.
SignaturesAlreadyBound
Signature masks are already bound for this session; rebinding live masks under a registered schema is never silent.
SignatureShapeMismatch
A signature mask slice does not match the carrier capacity.
Fields
SignaturesUnbound
The solve was attempted before signature masks were bound.
FeasibilityNotSolved
The top-two stage was attempted before the feasibility stage populated the feasible sets it consumes.
AbstainOutOfRange
The abstain label index is outside the label universe.
The joint-solve kernel module could not be loaded or its entry point resolved on this device.
Launch(XlogError)
The recorded launch failed preflight, launch, or commit.
Solver(SolverError)
A typed solver refusal (fuel exhaustion) surfaced through the carrier solve entry.
Trait Implementations§
Source§impl Debug for CarrierError
impl Debug for CarrierError
Source§impl Display for CarrierError
impl Display for CarrierError
Source§impl Error for CarrierError
impl Error for CarrierError
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()