[][src]Trait agilulf::SyncDatabase

pub trait SyncDatabase: Send + Sync {
    fn get_sync(&self, key: Slice) -> Result<Slice>;
fn put_sync(&self, key: Slice, value: Slice) -> Result<()>;
fn scan_sync(&self, start: Slice, end: Slice) -> Vec<(Slice, Slice)>;
fn delete_sync(&self, key: Slice) -> Result<()>; }

Abstraction layer for a SyncDatabase. Every method should return directly.

Required methods

fn get_sync(&self, key: Slice) -> Result<Slice>

fn put_sync(&self, key: Slice, value: Slice) -> Result<()>

fn scan_sync(&self, start: Slice, end: Slice) -> Vec<(Slice, Slice)>

fn delete_sync(&self, key: Slice) -> Result<()>

Loading content...

Implementors

impl SyncDatabase for MemDatabase[src]

Loading content...