pub trait Duplex:
Read
+ Write
+ Send {
// Required method
fn set_read_timeout(&mut self, t: Option<Duration>) -> Result<()>;
}Expand description
A connection a handler takes over after 101 Switching Protocols (a
websocket): both directions, and a read deadline it can shorten to poll.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".