Trait embedded_svc::ws::asynch::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>

Object Safety§

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§