pub struct TcpTransportConfig {
pub max_inflight_batches: usize,
pub reconnect_attempts: usize,
pub reconnect_backoff_ms: u64,
pub auth_token: Option<String>,
pub auth_session_token: Option<String>,
pub use_mtls: bool,
pub cert_chain_path: Option<String>,
pub transport: TransportKind,
pub send_buffer_size: usize,
pub recv_buffer_size: usize,
pub use_vectored_io: bool,
pub elems_per_token: usize,
}Expand description
Runtime controls for TCP/Unix transport execution.
Fields§
§max_inflight_batches: usize§reconnect_attempts: usize§reconnect_backoff_ms: u64§auth_token: Option<String>Per-batch HMAC-SHA256 auth token (legacy, use auth_session_token for performance).
auth_session_token: Option<String>Session-level auth token. Does a one-time HMAC handshake at connection setup, then verifies a lightweight monotonic sequence counter per batch. Much faster than per-batch HMAC while maintaining connection-level security.
use_mtls: bool§cert_chain_path: Option<String>§transport: TransportKindTransport protocol: Tcp (LAN) or Unix (loopback/local, lower overhead).
send_buffer_size: usizeSocket send buffer size (SO_SNDBUF). 0 = system default.
recv_buffer_size: usizeSocket receive buffer size (SO_RCVBUF). 0 = system default.
use_vectored_io: boolUse vectored I/O (writev/readv) for zero-copy header+payload writes.
elems_per_token: usizeSynthetic f32 elements per token in the benchmark/demo payload these
pipeline-execution paths generate — they move a stand-in payload
through the real transport rather than real model activations (see
ghost-link::main’s flow command). Defaults to 16 elements (64
bytes/token), matching the historical hardcoded value so every
existing caller keeps identical behavior; the flow CLI raises this
to reflect a real FP16/BF16 hidden-state size (e.g. 4096 × 2 bytes ÷
4 bytes/f32 = 2048 elements/token for a 7B-class model).
Trait Implementations§
Source§impl Clone for TcpTransportConfig
impl Clone for TcpTransportConfig
Source§fn clone(&self) -> TcpTransportConfig
fn clone(&self) -> TcpTransportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TcpTransportConfig
impl Debug for TcpTransportConfig
Source§impl Default for TcpTransportConfig
impl Default for TcpTransportConfig
impl Eq for TcpTransportConfig
Source§impl PartialEq for TcpTransportConfig
impl PartialEq for TcpTransportConfig
impl StructuralPartialEq for TcpTransportConfig
Auto Trait Implementations§
impl Freeze for TcpTransportConfig
impl RefUnwindSafe for TcpTransportConfig
impl Send for TcpTransportConfig
impl Sync for TcpTransportConfig
impl Unpin for TcpTransportConfig
impl UnsafeUnpin for TcpTransportConfig
impl UnwindSafe for TcpTransportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more