Trait wisp_mux::ws::WebSocketRead
source · pub trait WebSocketRead {
// Required method
fn wisp_read_frame<'life0, 'life1, 'async_trait>(
&'life0 mut self,
tx: &'life1 LockedWebSocketWrite
) -> Pin<Box<dyn Future<Output = Result<Frame, WispError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Generic WebSocket read trait.
Required Methods§
sourcefn wisp_read_frame<'life0, 'life1, 'async_trait>(
&'life0 mut self,
tx: &'life1 LockedWebSocketWrite
) -> Pin<Box<dyn Future<Output = Result<Frame, WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wisp_read_frame<'life0, 'life1, 'async_trait>(
&'life0 mut self,
tx: &'life1 LockedWebSocketWrite
) -> Pin<Box<dyn Future<Output = Result<Frame, WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read a frame from the socket.
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.