Trait WebSocketIo
pub trait WebSocketIo:
Stream<Item = Result<Message, ProtocolError>>
+ Sink<Message, Error = ProtocolError>
+ ExtensionsRef
+ Send
+ Unpin
+ 'static { }Available on crate features
http and std and ws only.Expand description
A complete asynchronous WebSocket message transport.
This trait gives middleware a protocol-level boundary without coupling it
to AsyncWebSocket or to the raw byte transport below it. Implementations
can decorate reads and writes while retaining access to connection
extensions.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".