pub trait SetReadTimeout {
    fn set_read_timeout(&mut self, timeout: Option<Duration>) -> Result<()>;
}
Expand description

Must be implemented for a transport in order for a Session to use IDLE.

Required Methods§

Set the timeout for subsequent reads to the given one.

If timeout is None, the read timeout should be removed.

See also std::net::TcpStream::set_read_timeout.

Implementations on Foreign Types§

Implementors§