Trait iroh_io::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§
sourceasync fn read_to_end(&mut self) -> Result<Bytes>
async fn read_to_end(&mut self) -> Result<Bytes>
Read the entire resource into a bytes::Bytes buffer, if possible.
Object Safety§
This trait is not object safe.