pub struct TcpNoDelay;Available on crate feature
net only.Expand description
Used to disable Nagle’s algorithm.
Nagle’s algorithm:
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, when enabled, defeats this algorithm.
Trait Implementations§
Source§impl Clone for TcpNoDelay
Available on crate feature socket only.
impl Clone for TcpNoDelay
Available on crate feature
socket only.Source§fn clone(&self) -> TcpNoDelay
fn clone(&self) -> TcpNoDelay
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 TcpNoDelay
Available on crate feature socket only.
impl Debug for TcpNoDelay
Available on crate feature
socket only.Source§impl GetSockOpt for TcpNoDelay
Available on crate feature socket only.
impl GetSockOpt for TcpNoDelay
Available on crate feature
socket only.Source§impl Hash for TcpNoDelay
Available on crate feature socket only.
impl Hash for TcpNoDelay
Available on crate feature
socket only.Source§impl PartialEq for TcpNoDelay
Available on crate feature socket only.
impl PartialEq for TcpNoDelay
Available on crate feature
socket only.Source§impl SetSockOpt for TcpNoDelay
Available on crate feature socket only.
impl SetSockOpt for TcpNoDelay
Available on crate feature
socket only.impl Copy for TcpNoDelay
Available on crate feature
socket only.impl Eq for TcpNoDelay
Available on crate feature
socket only.impl StructuralPartialEq for TcpNoDelay
Available on crate feature
socket only.Auto Trait Implementations§
impl Freeze for TcpNoDelay
Available on Unix only.
impl RefUnwindSafe for TcpNoDelay
Available on Unix only.
impl Send for TcpNoDelay
Available on Unix only.
impl Sync for TcpNoDelay
Available on Unix only.
impl Unpin for TcpNoDelay
Available on Unix only.
impl UnwindSafe for TcpNoDelay
Available on Unix only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.
impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.