Trait opendal::raw::oio::ReadDyn

source ·
pub trait ReadDyn: Unpin + Send + Sync {
    // Required methods
    fn read_dyn(&mut self) -> BoxedFuture<'_, Result<Buffer>>;
    fn read_all_dyn(&mut self) -> BoxedFuture<'_, Result<Buffer>>;
}
Expand description

ReadDyn is the dyn version of Read make it possible to use as Box<dyn ReadDyn>.

Required Methods§

source

fn read_dyn(&mut self) -> BoxedFuture<'_, Result<Buffer>>

The dyn version of Read::read.

This function returns a boxed future to make it object safe.

source

fn read_all_dyn(&mut self) -> BoxedFuture<'_, Result<Buffer>>

The dyn version of Read::read_all

Implementors§

source§

impl<T: Read + ?Sized> ReadDyn for T