WriteBlock

Trait WriteBlock 

Source
pub trait WriteBlock {
    // Required method
    fn write_block(
        &mut self,
        service_id: ServiceId,
        buf: &[u8],
    ) -> Result<(), IoError>;
}
Expand description

File block writer.

Required Methods§

Source

fn write_block( &mut self, service_id: ServiceId, buf: &[u8], ) -> Result<(), IoError>

Write file block stored in buf to the content-addressable storage.

Implementations on Foreign Types§

Source§

impl WriteBlock for VecMap<BlockRef, Bytes>

Source§

fn write_block( &mut self, service_id: ServiceId, buf: &[u8], ) -> Result<(), IoError>

Source§

impl<W: WriteBlock + ?Sized> WriteBlock for &mut W

Source§

fn write_block( &mut self, service_id: ServiceId, buf: &[u8], ) -> Result<(), IoError>

Implementors§