ReferenceRust referencesigil-validator-agent
sigil-validator-agent · error
Source declarations, signatures and documentation for error.
Source: sigil/node/sigil-validator-agent/src/error.rs. SHA-256: 030b49d9acdd7bcbe640de47d4a9ae24346304f31d6bd4e98ab5d92dc815ccb6.
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.
error::ValidatorAgentError
#[derive(Debug, Error)]
pub enum ValidatorAgentError {
#[error("config error: {0}")]
Config(String),
#[error("cycle budget exhausted for epoch {epoch} (budget {budget}, requested {requested})")]
CycleBudgetExhausted {
epoch: u64,
budget: u64,
requested: u64,
},
#[error("rate limit exceeded: {dispatched} dispatches in last minute (cap {cap})")]
RateLimitExceeded { dispatched: u32, cap: u32 },
#[error("L3 action {action_kind} not on auto-submit allowlist {allowed:?}")]
L3ActionNotAllowed {
action_kind: String,
allowed: Vec<String>,
},
#[error("L3 dispatch failed: {0}")]
L3DispatchFailed(String),
#[error("event stream closed unexpectedly")]
EventStreamClosed,
#[error("anomaly evaluation error: {0}")]
AnomalyEvaluation(#[from] sigil_anomaly::AnomalyError),
}Source line: 6.
error::Result
pub type Result<T> = std::result::Result<T, ValidatorAgentError>;Source line: 36.