pub struct TcpNoDelay;
Available on crate features
socket
and net
only.Expand description
Under most circumstances, TCP sends data when it is presented; when outstanding data has not yet been acknowledged, it gathers small amounts of output to be sent in a single packet once an acknowledgement is received. For a small number of clients, such as window systems that send a stream of mouse events which receive no replies, this packetization may cause significant delays. The boolean option TCP_NODELAY defeats this algorithm.
Trait Implementations§
source§impl Clone for TcpNoDelay
impl Clone for TcpNoDelay
source§fn clone(&self) -> TcpNoDelay
fn clone(&self) -> TcpNoDelay
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 TcpNoDelay
impl Debug for TcpNoDelay
source§impl GetSockOpt for TcpNoDelay
impl GetSockOpt for TcpNoDelay
source§impl Hash for TcpNoDelay
impl Hash for TcpNoDelay
source§impl PartialEq<TcpNoDelay> for TcpNoDelay
impl PartialEq<TcpNoDelay> for TcpNoDelay
source§fn eq(&self, other: &TcpNoDelay) -> bool
fn eq(&self, other: &TcpNoDelay) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.