filament-link · channel
Source declarations, signatures and documentation for channel.
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/channel.rs. SHA-256: 99127941c2f58e7de662cb16273144d27e043b8eca058c0f53b64957ef935c0c.
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.
channel::Channel
#[derive(Clone)]
pub struct Channel {
}Source line: 24.
channel::Channel::new
pub fn new(session_key: &[u8; 32], salt: Option<&[u8]>) -> Result<Self>;Source line: 47.
channel::Channel::encrypt
pub fn encrypt(&mut self, plaintext: &[u8]) -> Result<Vec<u8>>;Source line: 77.
channel::Channel::decrypt
pub fn decrypt(&mut self, encrypted: &[u8]) -> Result<Vec<u8>>;Source line: 122.
channel::Channel::tx_sequence
pub fn tx_sequence(&self) -> u64;Source line: 168.
channel::Channel::rx_sequence
pub fn rx_sequence(&self) -> u64;Source line: 173.
channel::Channel::reset_sequences
#[doc(hidden)]
pub fn reset_sequences(&mut self);Source line: 179.
channel::ChannelMessage
#[derive(Debug, Clone)]
pub struct ChannelMessage {
/// Message payload
pub payload: Vec<u8>,
/// Message sequence number
pub sequence: u64,
/// Timestamp
pub timestamp: std::time::Instant
}Source line: 203.
channel::ChannelMessage::new
pub fn new(payload: Vec<u8>, sequence: u64) -> Self;Source line: 216.
channel::ChannelMessage::size
pub fn size(&self) -> usize;Source line: 225.
channel::ChannelMessage::age
pub fn age(&self) -> std::time::Duration;Source line: 230.