tcp_stream_ext

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