Trait NoDelay
pub trait NoDelay {
// Required method
fn set_nodelay(&mut self, nodelay: bool) -> Result<(), Error>;
}Available on crate feature
ws only.Expand description
Trait to switch TCP_NODELAY.
Required Methods§
fn set_nodelay(&mut self, nodelay: bool) -> Result<(), Error>
fn set_nodelay(&mut self, nodelay: bool) -> Result<(), Error>
Set the TCP_NODELAY option to the given value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl<S, SD, T> NoDelay for StreamOwned<S, T>
Available on crate feature
__rustls-tls only.impl<S> NoDelay for MaybeTlsStream<S>
impl<S> NoDelay for TlsStream<S>
Available on crate feature
native-tls only.