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
sourceimpl Clone for TcpNoDelay
impl Clone for TcpNoDelay
sourcefn clone(&self) -> TcpNoDelay
fn clone(&self) -> TcpNoDelay
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TcpNoDelay
impl Debug for TcpNoDelay
sourceimpl GetSockOpt for TcpNoDelay
impl GetSockOpt for TcpNoDelay
sourceimpl Hash for TcpNoDelay
impl Hash for TcpNoDelay
sourceimpl PartialEq<TcpNoDelay> for TcpNoDelay
impl PartialEq<TcpNoDelay> for TcpNoDelay
sourceimpl SetSockOpt for TcpNoDelay
impl SetSockOpt for TcpNoDelay
impl Copy for TcpNoDelay
impl Eq for TcpNoDelay
impl StructuralEq for TcpNoDelay
impl StructuralPartialEq for TcpNoDelay
Auto Trait Implementations
impl RefUnwindSafe for TcpNoDelay
impl Send for TcpNoDelay
impl Sync for TcpNoDelay
impl Unpin for TcpNoDelay
impl UnwindSafe for TcpNoDelay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more