[−][src]Trait ciruela::blocks::GetBlock
A trait to fulfill block reading when uploading
Associated Types
type Data: AsRef<[u8]>
A block data returned
It's usually Vec<u8>
but may also be an Arc'd container or a
memory-mapped region.
type Error: Display
Error returned by future
This is used to print error and to send message to remote system
type Future: Future<Item = Self::Data, Error = Self::Error> + 'static
Future returned by read_block
Required Methods
fn read_block(&self, hash: BlockHash, hint: BlockHint) -> Self::Future
Read block by hash
Implementors
impl GetBlock for ThreadedBlockReader
[src]
impl GetBlock for ThreadedBlockReader
type Data = Vec<u8>
type Error = ReadError
type Future = FutureBlock
fn read_block(&self, hash: BlockHash, _hint: BlockHint) -> FutureBlock
[src]
fn read_block(&self, hash: BlockHash, _hint: BlockHint) -> FutureBlock