filament-interfaces · tcp_client
Source declarations, signatures and documentation for tcp_client.
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_client.rs. SHA-256: 71b2ceb3e8a07522a739aa7ec15efe806a6969dd122c14614b7cbddd9a1bf938.
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_client::TCPClientConfig
#[derive(Debug, Clone)]
pub struct TCPClientConfig {
/// Target server address
pub target_addr: SocketAddr,
/// Interface mode
pub mode: InterfaceMode,
/// Reconnection interval
pub reconnect_interval: Duration,
/// Maximum reconnection attempts (None = infinite)
pub max_reconnect_attempts: Option<usize>,
/// Connection timeout
pub connect_timeout: Duration,
/// Optional IFAC authentication
pub ifac: Option<IFAC>
}Source line: 20.
tcp_client::TCPClientInterface
pub struct TCPClientInterface {
}Source line: 83.
tcp_client::TCPClientInterface::new
pub async fn new(target_addr: SocketAddr, mode: InterfaceMode) -> Result<Self, InterfaceError>;Source line: 91.
tcp_client::TCPClientInterface::from_config
pub async fn from_config(config: TCPClientConfig) -> Result<Self, InterfaceError>;Source line: 101.
tcp_client::TCPClientInterface::is_connected
pub async fn is_connected(&self) -> bool;Source line: 276.
tcp_client::TCPClientInterface::wait_for_connection
pub async fn wait_for_connection(&self, timeout: Duration) -> Result<(), InterfaceError>;Source line: 281.