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

Generic WebSocket write trait.

Required Methods§

source

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

Write a frame to the socket.

Object Safety§

This trait is not object safe.

Implementors§