pub struct TcpKeepAlive;
Available on crate features
socket
and net
only.Expand description
Specify the amount of time, in seconds, that the connection must be idle before keepalive probes (if enabled) are sent.
Trait Implementations§
source§impl Clone for TcpKeepAlive
impl Clone for TcpKeepAlive
source§fn clone(&self) -> TcpKeepAlive
fn clone(&self) -> TcpKeepAlive
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 TcpKeepAlive
impl Debug for TcpKeepAlive
source§impl GetSockOpt for TcpKeepAlive
impl GetSockOpt for TcpKeepAlive
source§impl Hash for TcpKeepAlive
impl Hash for TcpKeepAlive
source§impl PartialEq<TcpKeepAlive> for TcpKeepAlive
impl PartialEq<TcpKeepAlive> for TcpKeepAlive
source§fn eq(&self, other: &TcpKeepAlive) -> bool
fn eq(&self, other: &TcpKeepAlive) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.