pub struct TcpConfig {
pub no_delay: bool,
pub keepalive_secs: u64,
pub reuse_port: bool,
pub fast_open: bool,
pub fast_open_qlen: u32,
pub prefer_ipv4: bool,
}Expand description
TCP socket configuration options.
Fields§
§no_delay: boolDisable Nagle’s algorithm (TCP_NODELAY) for lower latency.
keepalive_secs: u64TCP Keep-Alive interval in seconds (0 = disabled).
reuse_port: boolEnable SO_REUSEPORT for multi-process load balancing.
fast_open: boolEnable TCP Fast Open (requires kernel support).
fast_open_qlen: u32TCP Fast Open queue length (server-side).
prefer_ipv4: boolPrefer IPv4 addresses when resolving DNS for outbound connections.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcpConfig
impl<'de> Deserialize<'de> for TcpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TcpConfig
impl RefUnwindSafe for TcpConfig
impl Send for TcpConfig
impl Sync for TcpConfig
impl Unpin for TcpConfig
impl UnsafeUnpin for TcpConfig
impl UnwindSafe for TcpConfig
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
Mutably borrows from an owned value. Read more