Trait AsyncSendFrame

Source
pub trait AsyncSendFrame {
    // Required method
    fn send_frame_async(
        &mut self,
        body: &FrameBody,
    ) -> impl Future<Output = Result<(), ConnError>> + Send;
}

Required Methods§

Source

fn send_frame_async( &mut self, body: &FrameBody, ) -> impl Future<Output = Result<(), ConnError>> + Send

Writes a frame to the other side.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§