pub trait WebSocketWrite {
    // Required method
    fn wisp_write_frame(
        &mut self,
        frame: Frame
    ) -> impl Future<Output = Result<(), WispError>>;
}
Expand description

Generic WebSocket write trait.

Required Methods§

source

fn wisp_write_frame( &mut self, frame: Frame ) -> impl Future<Output = Result<(), WispError>>

Write a frame to the socket.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S: AsyncWrite + Unpin> WebSocketWrite for WebSocketWrite<S>

Available on crate feature fastwebsockets only.
source§

async fn wisp_write_frame(&mut self, frame: Frame) -> Result<(), WispError>

Implementors§