Trait wisp_mux::ws::WebSocketRead
source · pub trait WebSocketRead {
// Required method
fn wisp_read_frame(
&mut self,
tx: &LockedWebSocketWrite<impl WebSocketWrite + Send>
) -> impl Future<Output = Result<Frame, WispError>> + Send;
}
Expand description
Generic WebSocket read trait.
Required Methods§
sourcefn wisp_read_frame(
&mut self,
tx: &LockedWebSocketWrite<impl WebSocketWrite + Send>
) -> impl Future<Output = Result<Frame, WispError>> + Send
fn wisp_read_frame( &mut self, tx: &LockedWebSocketWrite<impl WebSocketWrite + Send> ) -> impl Future<Output = Result<Frame, WispError>> + Send
Read a frame from the socket.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<S: AsyncRead + Unpin + Send> WebSocketRead for FragmentCollectorRead<S>
Available on crate feature fastwebsockets
only.
impl<S: AsyncRead + Unpin + Send> WebSocketRead for FragmentCollectorRead<S>
Available on crate feature
fastwebsockets
only.