embedded_svc::ws::asynch

Trait Receiver

Source
pub trait Receiver: ErrorType {
    // Required method
    async fn recv(
        &mut self,
        frame_data_buf: &mut [u8],
    ) -> Result<(FrameType, usize), Self::Error>;
}

Required Methods§

Source

async fn recv( &mut self, frame_data_buf: &mut [u8], ) -> Result<(FrameType, usize), Self::Error>

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.

Implementations on Foreign Types§

Source§

impl<R> Receiver for &mut R
where R: Receiver,

Source§

async fn recv( &mut self, frame_data_buf: &mut [u8], ) -> Result<(FrameType, usize), Self::Error>

Implementors§