Enum nng::options::transport::tcp::NoDelay [−][src]
pub enum NoDelay {}
Expand description
Disable (or enable) the use of Nagle’s algorithm for TCP connections.
When true
(the default), messages are sent immediately by the
underlying TCP stream without waiting to gather more data. When
false
, Nagle’s algorithm is enabled, and the TCP stream may wait
briefly in attempt to coalesce messages. Nagle’s algorithm is
useful on low-bandwidth connections to reduce overhead, but it
comes at a cost to latency.
Support
- Dialers and Listeners can use this option with the following transports:
- TCP
- TLS
- Pipes can read this value on the following transports:
- TCP
- TLS
- Sockets can use this to set a default value.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoDelay
impl UnwindSafe for NoDelay
Blanket Implementations
Mutably borrows from an owned value. Read more