Skip to main content

AsyncDecoder

Trait AsyncDecoder 

Source
pub trait AsyncDecoder: Unpin {
    // Required methods
    async fn read_u8(&mut self) -> Result<u8>;
    async fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>;
}

Required Methods§

Source

async fn read_u8(&mut self) -> Result<u8>

Source

async fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>

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§