pub struct TcpConfig {
pub nodelay: bool,
pub send_buffer_size: Option<usize>,
pub keepalive: Option<TcpKeepaliveConfig>,
}Expand description
Socket configuration for the underlying WebSocket TCP connection.
Fields§
§nodelay: boolWhether to enable TCP_NODELAY to disable Nagle algorithm, default true.
send_buffer_size: Option<usize>Request to set the TCP send buffer size in bytes; None means to keep the system default value.
keepalive: Option<TcpKeepaliveConfig>TCP keepalive detection parameters; None means no additional configuration of TCP keepalive.
Implementations§
Trait Implementations§
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