IndicesStore

Trait IndicesStore 

Source
pub trait IndicesStore {
    // Required methods
    fn read_bin(&self, key: &Cid) -> Result<Option<Vec<u8>>>;
    fn write_bin(&self, key: &Cid, value: &[u8]) -> Result<()>;
    fn exists(&self, key: &Cid) -> Result<bool>;
}

Required Methods§

Source

fn read_bin(&self, key: &Cid) -> Result<Option<Vec<u8>>>

Source

fn write_bin(&self, key: &Cid, value: &[u8]) -> Result<()>

Source

fn exists(&self, key: &Cid) -> Result<bool>

Implementations on Foreign Types§

Source§

impl<T: IndicesStore> IndicesStore for Arc<T>

Source§

fn read_bin(&self, key: &Cid) -> Result<Option<Vec<u8>>>

Source§

fn write_bin(&self, key: &Cid, value: &[u8]) -> Result<()>

Source§

fn exists(&self, key: &Cid) -> Result<bool>

Implementors§