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<()>

Implementors§