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