Trait asuran::repository::backend::common::sync_backend::SyncIndex[][src]

pub trait SyncIndex: Debug {
    fn lookup_chunk(&mut self, id: ChunkID) -> Option<SegmentDescriptor>;
fn set_chunk(
        &mut self,
        id: ChunkID,
        location: SegmentDescriptor
    ) -> Result<()>;
fn known_chunks(&mut self) -> HashSet<ChunkID>;
fn commit_index(&mut self) -> Result<()>;
fn chunk_count(&mut self) -> usize; }

Required methods

Implementors