Module ciruela::index [] [src]

Index serving traits and implementations

When uploading an image (a directory). First it's indexed with dir-signature crate getting basically recursive directory list with a hash for each file.

Then the hashsum of that file is recorded as an ImageId and sent to the peer. Subsequently peer asks for the index data (if it have no index cached already).

Structs

ImageId

Image identifier

InMemoryIndexes

A GetIndex implementation that serves indexes from memory

Enums

IndexError

Error adding index

ReadError

Index not found error

Traits

GetIndex

A trait to fulfill index data when uploading