pub struct TcpSettings { /* private fields */ }Expand description
Settings for a TCP stream.
Implementations§
Source§impl TcpSettings
impl TcpSettings
Sourcepub fn keepalive(&self) -> Option<&TcpKeepalive>
Available on non-target_family=wasm only.
pub fn keepalive(&self) -> Option<&TcpKeepalive>
target_family=wasm only.Returns parameters configuring TCP keepalive probes for this socket.
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
Available on non-target_family=wasm only.
pub fn set_keepalive(self, keepalive: TcpKeepalive) -> Self
target_family=wasm only.Set parameters configuring TCP keepalive probes for this socket.
Default values are system-specific
Trait Implementations§
Source§impl Clone for TcpSettings
impl Clone for TcpSettings
Source§fn clone(&self) -> TcpSettings
fn clone(&self) -> TcpSettings
Returns a duplicate 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