Trait tungstenite::stream::NoDelay
source · pub trait NoDelay {
// Required method
fn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>;
}
Expand description
Trait to switch TCP_NODELAY.
Required Methods§
sourcefn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>
fn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>
Set the TCP_NODELAY option to the given value.