filament-interfaces · udp
Source declarations, signatures and documentation for udp.
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-interfaces/src/udp.rs. SHA-256: 24f6095728e0d4fda98173335c2b347a3da6c1588bf3862bc8b0ed580231e54f.
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.
udp::UDPInterfaceConfig
#[derive(Debug, Clone)]
pub struct UDPInterfaceConfig {
/// Local bind port
pub port: u16,
/// Broadcast/multicast address
pub forward_ip: Option<IpAddr>,
/// Forward port
pub forward_port: u16,
/// Interface mode
pub mode: InterfaceMode,
/// Enable broadcast
pub broadcast: bool,
/// Optional IFAC authentication
pub ifac: Option<IFAC>
}Source line: 16.
udp::UDPInterface
pub struct UDPInterface {
}Source line: 75.
udp::UDPInterface::new
pub async fn new(port: u16, mode: InterfaceMode) -> Result<Self, InterfaceError>;Source line: 81.
udp::UDPInterface::from_config
pub async fn from_config(config: UDPInterfaceConfig) -> Result<Self, InterfaceError>;Source line: 91.
udp::UDPInterface::set_forward_address
pub async fn set_forward_address(&self, ip: IpAddr, port: u16);Source line: 126.
udp::UDPInterface::set_broadcast
pub async fn set_broadcast(&self, enabled: bool) -> Result<(), InterfaceError>;Source line: 134.