Weave documentation
Filament referencefilament-link

filament-link · error

Source declarations, signatures and documentation for error.

Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.

Source: sigil/weave/filament/filament-link/src/error.rs. SHA-256: 858668f01d4cd6c39c1f5172a6b9f203be0ed851a370cf1b2189e5d1b598d089.

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

pub type Result<T> = std::result::Result<T, LinkError>;

Source line: 6.

error::LinkError

#[derive(Error, Debug)]
pub enum LinkError {
    /// Link establishment failed
    #[error("link establishment failed: {0}")]
    EstablishmentFailed(String),

    /// Link proof verification failed
    #[error("link proof verification failed: {0}")]
    ProofVerificationFailed(String),

    /// Invalid link request
    #[error("invalid link request: {0}")]
    InvalidRequest(String),

    /// Invalid link proof
    #[error("invalid link proof: {0}")]
    InvalidProof(String),

    /// Cryptographic operation failed
    #[error("cryptographic operation failed: {0}")]
    CryptoError(String),

    /// Key derivation failed
    #[error("key derivation failed: {0}")]
    KeyDerivationFailed(String),

    /// Encryption failed
    #[error("encryption failed: {0}")]
    EncryptionFailed(String),

    /// Decryption failed
    #[error("decryption failed: {0}")]
    DecryptionFailed(String),

    /// HMAC verification failed
    #[error("HMAC verification failed")]
    HmacVerificationFailed,

    /// Signature verification failed
    #[error("signature verification failed")]
    SignatureVerificationFailed,

    /// Link timeout
    #[error("link operation timed out after {0}s")]
    Timeout(u64),

    /// Link not established
    #[error("link not established")]
    NotEstablished,

    /// Link already established
    #[error("link already established")]
    AlreadyEstablished,

    /// Link closed
    #[error("link closed")]
    Closed,

    /// Invalid link state
    #[error("invalid link state: expected {expected}, got {actual}")]
    InvalidState {
        /// Expected state
        expected: String,
        /// Actual state
        actual: String,
    },

    /// Packet too large
    #[error("packet size {size} exceeds MTU {mtu}")]
    PacketTooLarge {
        /// Packet size
        size: usize,
        /// Maximum transmission unit
        mtu: usize,
    },

    /// Invalid packet
    #[error("invalid packet: {0}")]
    InvalidPacket(String),

    /// Retransmission limit exceeded
    #[error("retransmission limit exceeded ({0} attempts)")]
    RetransmitLimitExceeded(u8),

    /// Resource transfer failed
    #[error("resource transfer failed: {0}")]
    ResourceTransferFailed(String),

    /// I/O error
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    /// Serialization error
    #[error("serialization error: {0}")]
    Serialization(String),

    /// Channel error
    #[error("channel error: {0}")]
    Channel(String),

    /// Other error
    #[error("error: {0}")]
    Other(String),
}

Source line: 10.

error::LinkError::is_recoverable

pub fn is_recoverable(&self) -> bool;

Source line: 116.

error::LinkError::is_auth_failure

pub fn is_auth_failure(&self) -> bool;

Source line: 127.

On this page