Trait simple_stream::TcpOptions
[−]
[src]
pub trait TcpOptions {
fn set_tcp_keepalive(&mut self, keepalive: bool) -> Result<(), Error>;
fn set_tcp_nodelay(&mut self, nodelay: bool) -> Result<(), Error>;
}The TcpOptions trait allows for various TCP setting used in syscalls
throughout Unix-like kernels.
Required Methods
fn set_tcp_keepalive(&mut self, keepalive: bool) -> Result<(), Error>
Sets the SO_KEEPALIVE flag to keepalive on this socket.
fn set_tcp_nodelay(&mut self, nodelay: bool) -> Result<(), Error>
Sets the TCP_NODELAY flag to nodelay on this socket.
Implementors
impl TcpOptions for Socket