Sigil documentation
ReferenceRust referencesigil-compute

sigil-compute · error

Source declarations, signatures and documentation for error.

Source: sigil/node/sigil-compute/src/error.rs. SHA-256: d85d33e2d0a3a8b1a1b3c33c9f4300d9107a74c5358668a6e2e77fe898a771bb.

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::ComputeError

Compute facade error types. Errors produced by compute marketplace operations.

#[derive(Debug, thiserror::Error)]
pub enum ComputeError {
    /// No provider is available to fulfill the job.
    #[error("no provider available")]
    NoProviderAvailable,

    /// The job's cost exceeds the consumer's budget.
    #[error("budget exceeded: limit={limit}, cost={cost}")]
    BudgetExceeded {
        /// Maximum budget set by the consumer (micro-MINT).
        limit: u64,
        /// Actual estimated cost (micro-MINT).
        cost: u64,
    },

    /// An error occurred while communicating with a provider.
    #[error("provider error: {0}")]
    ProviderError(String),

    /// The job dispatch failed.
    #[error("dispatch failed: {0}")]
    DispatchFailed(String),

    /// Verification of compute results failed.
    #[error("verification failed: {0}")]
    VerificationFailed(String),

    /// The requested job was not found.
    #[error("job not found: {0}")]
    JobNotFound(String),
}

Source line: 5.

On this page