Weave documentation
Filament referencefilament-transport

filament-transport · 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-transport/src/error.rs. SHA-256: ef8b0f5b15548540f44076894abd48b73e18c7d976bf812936c2858a8eb63013.

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, TransportError>;

Source line: 6.

error::TransportError

#[derive(Error, Debug)]
pub enum TransportError {
    /// Path not found for destination.
    #[error("Path not found for destination {0}")]
    PathNotFound(String),

    /// Routing table is full.
    #[error("Routing table is full (max entries: {0})")]
    RoutingTableFull(usize),

    /// Invalid hop count.
    #[error("Invalid hop count: {0}")]
    InvalidHopCount(u8),

    /// Announce queue is full.
    #[error("Announce queue is full")]
    AnnounceQueueFull,

    /// Bandwidth limit exceeded.
    #[error("Bandwidth limit exceeded")]
    BandwidthLimitExceeded,

    /// Loop detected in routing.
    #[error("Loop detected: packet has visited this node before")]
    LoopDetected,

    /// TTL expired.
    #[error("TTL expired (hop count reached 0)")]
    TtlExpired,

    /// Invalid interface mode.
    #[error("Invalid interface mode: {0}")]
    InvalidInterfaceMode(String),

    /// Path expired.
    #[error("Path expired")]
    PathExpired,

    /// Serialization error.
    #[error("Serialization error: {0}")]
    SerializationError(#[from] bincode::Error),

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

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

Source line: 10.

On this page