Trait BlockingRead

Source
pub trait BlockingRead: Send + Sync {
    // Required method
    fn read(&mut self) -> Result<Buffer>;
}
Expand description

Read is the trait that OpenDAL returns to callers.

Required Methods§

Source

fn read(&mut self) -> Result<Buffer>

Read data from the reader at the given offset with the given size.

Implementations on Foreign Types§

Source§

impl BlockingRead for ()

Source§

fn read(&mut self) -> Result<Buffer>

Source§

impl BlockingRead for Bytes

Source§

fn read(&mut self) -> Result<Buffer>

Source§

impl<T: BlockingRead + ?Sized> BlockingRead for Box<T>

Arc<dyn BlockingRead> won’t implement BlockingRead automatically. To make BlockingReader work as expected, we must add this impl.

Source§

fn read(&mut self) -> Result<Buffer>

Implementors§

Source§

impl BlockingRead for Buffer

Source§

impl<ONE, TWO, THREE, FOUR> BlockingRead for FourWays<ONE, TWO, THREE, FOUR>
where ONE: BlockingRead, TWO: BlockingRead, THREE: BlockingRead, FOUR: BlockingRead,

Source§

impl<ONE: BlockingRead, TWO: BlockingRead> BlockingRead for TwoWays<ONE, TWO>

Source§

impl<ONE: BlockingRead, TWO: BlockingRead, THREE: BlockingRead> BlockingRead for ThreeWays<ONE, TWO, THREE>