Weave documentation
Filament referencefilament-types

filament-types · crate

Source declarations, signatures and documentation for crate.

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-types/src/lib.rs. SHA-256: 5614b41ed9e42839aa6a43ea87550320e481e573b6aff43bb09aaca9f9f4fd0c.

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.

primitives

pub mod primitives;

Source line: 28.

pub use primitives::{DestinationHash, InterfaceMode, LinkId, ANNOUNCE_CAP, MTU};

pub use primitives::{DestinationHash, InterfaceMode, LinkId, ANNOUNCE_CAP, MTU};

Source line: 30.

::Result

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

Source line: 33.

::Error

#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Invalid hash length
    #[error("invalid hash length: expected {expected}, got {actual}")]
    InvalidHashLength {
        /// Expected length
        expected: usize,
        /// Actual length
        actual: usize,
    },

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

    /// Serialization error
    #[error("serialization error: {0}")]
    Serialization(#[from] serde_json::Error),
}

Source line: 37.

On this page