Trait AsyncRecvFrame

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

Required Methods§

Source

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

Reads a frame from 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§