Trait net2::TcpStreamExt
[−]
[src]
pub trait TcpStreamExt { fn set_nodelay(&self, nodelay: bool) -> Result<()>; fn nodelay(&self) -> Result<bool>; fn set_ttl(&self, ttl: u32) -> Result<()>; fn ttl(&self) -> Result<u32>; fn set_only_v6(&self, only_v6: bool) -> Result<()>; fn only_v6(&self) -> Result<bool>; }
Required Methods
fn set_nodelay(&self, nodelay: bool) -> Result<()>
fn nodelay(&self) -> Result<bool>
fn set_ttl(&self, ttl: u32) -> Result<()>
fn ttl(&self) -> Result<u32>
fn set_only_v6(&self, only_v6: bool) -> Result<()>
fn only_v6(&self) -> Result<bool>
Implementors
impl TcpStreamExt for TcpStream