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.