Weave documentation
Filament referencefilament-transport

filament-transport · types

Source declarations, signatures and documentation for types.

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/types.rs. SHA-256: 1f5cffa360e8c3402018fd4435ceb1b68be6f61214b5abfeb054440e7d227840.

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.

types::DestinationHash

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct DestinationHash(pub [u8; 16]);

Source line: 11.

types::DestinationHash::new

#[must_use]
pub const fn new(bytes: [u8; 16]) -> Self;

Source line: 16.

types::DestinationHash::as_bytes

#[must_use]
pub const fn as_bytes(&self) -> &[u8; 16];

Source line: 22.

types::DestinationHash::to_hex

#[must_use]
pub fn to_hex(&self) -> String;

Source line: 28.

types::DestinationHash::from_hex

pub fn from_hex(s: &str) -> Result<Self, hex::FromHexError>;

Source line: 37.

types::InterfaceId

#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct InterfaceId(String);

Source line: 66.

types::InterfaceId::new

#[must_use]
pub fn new(name: impl Into<String>) -> Self;

Source line: 71.

types::InterfaceId::as_str

#[must_use]
pub fn as_str(&self) -> &str;

Source line: 77.

types::LinkId

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct LinkId(pub [u8; 16]);

Source line: 102.

types::LinkId::new

#[must_use]
pub const fn new(bytes: [u8; 16]) -> Self;

Source line: 107.

types::LinkId::as_bytes

#[must_use]
pub const fn as_bytes(&self) -> &[u8; 16];

Source line: 113.

types::LinkId::to_hex

#[must_use]
pub fn to_hex(&self) -> String;

Source line: 119.

types::hex::FromHexError

#[derive(Debug, Clone)]
pub enum FromHexError {
        InvalidHexCharacter { c: char, index: usize },
        InvalidStringLength,
    }

Source line: 135.

types::hex::encode

pub fn encode(bytes: impl AsRef<[u8]>) -> String;

Source line: 153.

types::hex::decode

pub fn decode(s: &str) -> Result<Vec<u8>, FromHexError>;

Source line: 161.

On this page