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

pub trait SyncIndex: Send + 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

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

Loading content...

Implementors

impl SyncIndex for FlatFile[src]

impl SyncIndex for Mem[src]

Loading content...