Trait tcp_stream_ext::TcpStreamExt

source ·
pub trait TcpStreamExt {
    // Required methods
    fn set_user_timeout(&self, timeout: Duration) -> Result<()>;
    fn user_timeout(&self) -> Result<Duration, Error>;
}

Required Methods§

source

fn set_user_timeout(&self, timeout: Duration) -> Result<()>

Sets TCP_USER_TIMEOUT. Fuchsia supports 1..=i32::max_value() milliseconds.

source

fn user_timeout(&self) -> Result<Duration, Error>

Gets TCP_USER_TIMEOUT.

Implementations on Foreign Types§

source§

impl TcpStreamExt for TcpStream

Implementors§