pub trait ReadDyn:
Unpin
+ Send
+ Sync {
// Required methods
fn open_dyn(
&self,
range: BytesRange,
) -> BoxedFuture<'_, Result<(RpRead, Box<dyn ReadStreamDyn>)>>;
fn read_dyn(
&self,
range: BytesRange,
) -> BoxedFuture<'_, Result<(RpRead, Buffer)>>;
}Expand description
ReadDyn is the dyn version of Read make it possible to use as
Box<dyn ReadDyn>.
Required Methods§
Sourcefn open_dyn(
&self,
range: BytesRange,
) -> BoxedFuture<'_, Result<(RpRead, Box<dyn ReadStreamDyn>)>>
fn open_dyn( &self, range: BytesRange, ) -> BoxedFuture<'_, Result<(RpRead, Box<dyn ReadStreamDyn>)>>
The dyn version of Read::open.
Sourcefn read_dyn(
&self,
range: BytesRange,
) -> BoxedFuture<'_, Result<(RpRead, Buffer)>>
fn read_dyn( &self, range: BytesRange, ) -> BoxedFuture<'_, Result<(RpRead, Buffer)>>
The dyn version of Read::read.