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§
sourcefn set_user_timeout(&self, timeout: Duration) -> Result<()>
fn set_user_timeout(&self, timeout: Duration) -> Result<()>
Sets TCP_USER_TIMEOUT. Fuchsia supports 1..=i32::max_value()
milliseconds.
sourcefn user_timeout(&self) -> Result<Duration, Error>
fn user_timeout(&self) -> Result<Duration, Error>
Gets TCP_USER_TIMEOUT.