Trait rust_inbox::client::SetReadTimeout
[−]
[src]
pub trait SetReadTimeout { fn set_read_timeout(&mut self, timeout: Option<Duration>) -> Result<()>; }
Must be implemented for a transport in order for a Client
using that transport to support
operations with timeouts.
Examples of where this is useful is for IdleHandle::wait_keepalive
and
IdleHandle::wait_timeout
.
Required Methods
fn set_read_timeout(&mut self, timeout: Option<Duration>) -> Result<()>
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
.