pub struct TcpSettings { /* private fields */ }
Expand description
Settings for a TCP stream.
Implementations§
Source§impl TcpSettings
impl TcpSettings
Sourcepub fn set_nodelay(self, nodelay: bool) -> Self
pub fn set_nodelay(self, nodelay: bool) -> Self
Sets the value of the TCP_NODELAY
option on this socket.
Sourcepub fn set_keepalive(self, keepalive: TcpKeepalive) -> Self
pub fn set_keepalive(self, keepalive: TcpKeepalive) -> Self
Set parameters configuring TCP keepalive probes for this socket.
Default values are system-specific
Sourcepub fn set_user_timeout(self, user_timeout: Duration) -> Self
pub fn set_user_timeout(self, user_timeout: Duration) -> Self
Set the value of the TCP_USER_TIMEOUT
option on this socket.
Trait Implementations§
Source§impl Clone for TcpSettings
impl Clone for TcpSettings
Source§fn clone(&self) -> TcpSettings
fn clone(&self) -> TcpSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TcpSettings
impl Debug for TcpSettings
Auto Trait Implementations§
impl Freeze for TcpSettings
impl RefUnwindSafe for TcpSettings
impl Send for TcpSettings
impl Sync for TcpSettings
impl Unpin for TcpSettings
impl UnwindSafe for TcpSettings
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