pub trait SocketIo:
Stream<Item = Result<Message, Error>>
+ Sink<Message, Error = Error>
+ Send
+ Unpin { }Expand description
An open connection as the kit reads and writes it: a stream of frames and a sink for them, both failing with tungstenite’s error.
Every type that is both, and Send + Unpin, is one, so a transport returns
its own socket boxed as a BoxSocket.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".