pub(crate) trait SessionStream:
AsyncRead
+ AsyncWrite
+ Unpin
+ Send
+ Sync
+ Debug {
// Required method
fn set_read_timeout(&mut self, timeout: Option<Duration>);
}
Required Methods§
sourcefn set_read_timeout(&mut self, timeout: Option<Duration>)
fn set_read_timeout(&mut self, timeout: Option<Duration>)
Change the read timeout on the session stream.
Trait Implementations§
source§impl SessionStream for Box<dyn SessionStream>
impl SessionStream for Box<dyn SessionStream>
source§fn set_read_timeout(&mut self, timeout: Option<Duration>)
fn set_read_timeout(&mut self, timeout: Option<Duration>)
Change the read timeout on the session stream.