[][src]Trait bronzedb_engine::Engine

pub trait Engine {
    type Error: Into<Error>;
    fn set(&mut self, key: Key, value: Value) -> Result<(), Self::Error>;
fn get(&self, key: Key) -> Result<Option<Value>, Self::Error>;
fn delete(&mut self, key: Key) -> Result<(), Self::Error>;
fn scan(
        &self,
        lower_bound: Option<Key>,
        upper_bound: Option<Key>
    ) -> Result<Box<dyn Scanner>, Self::Error>; }

Associated Types

Loading content...

Required methods

fn set(&mut self, key: Key, value: Value) -> Result<(), Self::Error>

fn get(&self, key: Key) -> Result<Option<Value>, Self::Error>

fn delete(&mut self, key: Key) -> Result<(), Self::Error>

fn scan(
    &self,
    lower_bound: Option<Key>,
    upper_bound: Option<Key>
) -> Result<Box<dyn Scanner>, Self::Error>

Loading content...

Implementors

Loading content...