PrunableStore

Trait PrunableStore 

Source
pub trait PrunableStore: DAGStore {
    // Required method
    fn remove(&mut self, cid: &Hash) -> Result<(), String>;

    // Provided method
    fn remove_batch(&mut self, cids: &[Hash]) -> Result<usize, String> { ... }
}
Expand description

Extension trait for stores that support node removal.

Required Methods§

Source

fn remove(&mut self, cid: &Hash) -> Result<(), String>

Remove a node from the store.

Provided Methods§

Source

fn remove_batch(&mut self, cids: &[Hash]) -> Result<usize, String>

Remove multiple nodes.

Implementors§