Module ciruela::blocks [] [src]

Block reading traits and implementations

When uploading an image firsly you upload an index and then server fetches individual blocks from the image.

Server may not need to fetch some blocks, because it already have them from other images. This is the reason why server request them.

Structs

BlockHash

Hash of a block

BlockHint

Hint where to find block

FutureBlock

A future returned by ThreadedBlockReader::read_block

ThreadedBlockReader

A default threaded block reader

Enums

DirError

Error adding directory

ReadError

Error reading block

Traits

GetBlock

A trait to fulfill block reading when uploading