Skip to main content

NoDelay

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NoDelay for TcpStream

Source§

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

Implementors§