filament-types · primitives
Source declarations, signatures and documentation for primitives.
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/primitives.rs. SHA-256: 73f1aeb1e3ec49fb5a74644e19999ec9043d263a59fe731f82370ddf0fbf30ec.
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::MTU
pub const MTU: usize;Source line: 13.
primitives::ANNOUNCE_CAP
pub const ANNOUNCE_CAP: f32;Source line: 18.
primitives::DestinationHash
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct DestinationHash(pub [u8; 16]);Source line: 35.
primitives::DestinationHash::from_bytes
#[inline]
pub const fn from_bytes(bytes: [u8; 16]) -> Self;Source line: 40.
primitives::DestinationHash::from_slice
pub fn from_slice(bytes: &[u8]) -> crate::Result<Self>;Source line: 49.
primitives::DestinationHash::as_bytes
#[inline]
pub fn as_bytes(&self) -> &[u8; 16];Source line: 63.
primitives::DestinationHash::to_hex
pub fn to_hex(&self) -> String;Source line: 68.
primitives::DestinationHash::from_hex
pub fn from_hex(s: &str) -> crate::Result<Self>;Source line: 80.
primitives::LinkId
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct LinkId(pub [u8; 16]);Source line: 124.
primitives::LinkId::from_bytes
#[inline]
pub const fn from_bytes(bytes: [u8; 16]) -> Self;Source line: 129.
primitives::LinkId::from_slice
pub fn from_slice(bytes: &[u8]) -> crate::Result<Self>;Source line: 138.
primitives::LinkId::as_bytes
#[inline]
pub fn as_bytes(&self) -> &[u8; 16];Source line: 152.
primitives::LinkId::to_hex
pub fn to_hex(&self) -> String;Source line: 157.
primitives::InterfaceMode
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum InterfaceMode {
/// Full transport participation (routing and forwarding)
Full,
/// Gateway to another network segment
Gateway,
/// Access point functionality
AccessPoint,
/// Mobile node with intermittent connectivity
Roaming,
/// Edge node with limited forwarding
Boundary,
}Source line: 184.
primitives::InterfaceMode::allows_forwarding
pub const fn allows_forwarding(&self) -> bool;Source line: 199.
primitives::InterfaceMode::participates_in_routing
pub const fn participates_in_routing(&self) -> bool;Source line: 207.