Trait AsyncSliceReaderExt

Source
pub trait AsyncSliceReaderExt: AsyncSliceReader {
    // Provided method
    async fn read_to_end(&mut self) -> Result<Bytes> { ... }
}
Expand description

Extension trait for AsyncSliceReader.

Provided Methods§

Source

async fn read_to_end(&mut self) -> Result<Bytes>

Read the entire resource into a bytes::Bytes buffer, if possible.

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§