Weave documentation
Filament referencefilament-interfaces

filament-interfaces · tcp_server

Source declarations, signatures and documentation for tcp_server.

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/tcp_server.rs. SHA-256: 2369281528f9e093798f54c5002ad69db6ca3b4fb1c032bf55d2bf3249adbc18.

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.

tcp_server::TCPServerConfig

#[derive(Debug, Clone)]
pub struct TCPServerConfig {
/// Bind address

pub bind_addr: SocketAddr,
/// Interface mode

pub mode: InterfaceMode,
/// Maximum number of concurrent clients

pub max_clients: usize,
/// Optional IFAC authentication

pub ifac: Option<IFAC>
}

Source line: 18.

tcp_server::TCPServerInterface

pub struct TCPServerInterface {

}

Source line: 73.

tcp_server::TCPServerInterface::new

pub async fn new(bind_addr: SocketAddr, mode: InterfaceMode) -> Result<Self, InterfaceError>;

Source line: 80.

tcp_server::TCPServerInterface::from_config

pub async fn from_config(config: TCPServerConfig) -> Result<Self, InterfaceError>;

Source line: 90.

tcp_server::TCPServerInterface::client_count

pub async fn client_count(&self) -> usize;

Source line: 260.

On this page