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§

source

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.

Implementors§