ReferenceRust referencesigil-crucible
sigil-crucible · errors
Source declarations, signatures and documentation for errors.
Source: sigil/node/sigil-crucible/src/errors.rs. SHA-256: 303f7ad4c354162ae1dc404dd70069fc9839e3854662e46eeb76ec6962756b36.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
errors::CrucibleError
#[derive(Debug, Clone, PartialEq, Eq, Error)]
pub enum CrucibleError {
#[error("crucible is disabled by policy")]
FeatureDisabled,
#[error("invalid crucible policy: {0}")]
InvalidPolicy(String),
#[error("artifact commitment is not content-addressed and identity-bound")]
ArtifactIdentityUnverified,
#[error("training run `{0}` already exists")]
RunAlreadyExists(String),
#[error("training run `{0}` was not found")]
RunNotFound(String),
#[error("training run is not open")]
RunNotOpen,
#[error("training run id mismatch: expected `{expected}`, got `{got}`")]
RunMismatch { expected: String, got: String },
#[error("policy version mismatch: expected {expected}, got {got}")]
PolicyVersionMismatch { expected: u32, got: u32 },
#[error(
"rollout is stale: committed at epoch {committed_at_epoch}, current epoch {current_epoch}, max staleness {max_staleness_epochs}"
)]
StaleRollout {
committed_at_epoch: u64,
current_epoch: u64,
max_staleness_epochs: u64,
},
#[error("verifier mode {0:?} is unavailable")]
VerifierModeUnavailable(VerifierMode),
#[error("verifier mode mismatch: expected {expected:?}, got {got:?}")]
VerifierModeMismatch {
expected: VerifierMode,
got: VerifierMode,
},
#[error("unauthorized verifier `{0}`")]
UnauthorizedVerifier(String),
#[error("unauthorized publisher `{0}`")]
UnauthorizedPublisher(String),
#[error("reward pool has {available}, needs {needed}")]
RewardPoolInsufficient { available: u64, needed: u64 },
#[error("unsupported reward token `{0}`")]
UnsupportedRewardToken(String),
#[error("lineage reward integration is unavailable")]
LineageRewardsUnavailable,
#[error("reward amount must be non-zero")]
InvalidRewardAmount,
#[error("previous weight root does not match the run head")]
PreviousRootMismatch,
#[error("run close is not allowed in the current state")]
CloseNotAllowed,
#[error("invalid epoch ordering")]
InvalidEpoch,
}Source line: 6.