ReadBlock

Trait ReadBlock 

Source
pub trait ReadBlock {
    // Required method
    fn read_block(&mut self, block_ref: &BlockRef) -> Result<Bytes, IoError>;
}
Expand description

File block reader.

Required Methods§

Source

fn read_block(&mut self, block_ref: &BlockRef) -> Result<Bytes, IoError>

Read file block referenced by block_ref from the content-addressable storage.

Implementations on Foreign Types§

Source§

impl ReadBlock for VecMap<BlockRef, Bytes>

Source§

fn read_block(&mut self, block_ref: &BlockRef) -> Result<Bytes, IoError>

Source§

impl<R: ReadBlock + ?Sized> ReadBlock for &mut R

Source§

fn read_block(&mut self, block_ref: &BlockRef) -> Result<Bytes, IoError>

Implementors§