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§

source

fn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>

Set the TCP_NODELAY option to the given value.

Implementations on Foreign Types§

source§

impl NoDelay for TcpStream

source§

fn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>

source§

impl<S, SD, T> NoDelay for StreamOwned<S, T>
where S: Deref<Target = ConnectionCommon<SD>>, SD: SideData, T: Read + Write + NoDelay,

source§

fn set_nodelay(&mut self, nodelay: bool) -> IoResult<()>

Implementors§