Skip to main content

FrameReadable

Trait FrameReadable 

Source
pub trait FrameReadable {
    // Required method
    fn read_frame(
        &mut self,
        max_len: usize,
    ) -> Pin<Box<dyn Future<Output = Result<(u16, Vec<u8>)>> + Send + '_>>;
}
Expand description

Reader capable of yielding whole frames with attribution.

Required Methods§

Source

fn read_frame( &mut self, max_len: usize, ) -> Pin<Box<dyn Future<Output = Result<(u16, Vec<u8>)>> + Send + '_>>

Implementors§