pub trait AsyncChunkReader: Send {
// Required methods
fn len(&mut self) -> BoxFuture<'_, Result<u64>>;
fn get_bytes(
&mut self,
offset_from_start: u64,
length: u64,
) -> BoxFuture<'_, Result<Bytes>>;
}Required Methods§
fn len(&mut self) -> BoxFuture<'_, Result<u64>>
fn get_bytes( &mut self, offset_from_start: u64, length: u64, ) -> BoxFuture<'_, Result<Bytes>>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".