Trait v_common_storage::storage::Storage[][src]

pub trait Storage {
    fn get_individual_from_db(
        &mut self,
        storage: StorageId,
        id: &str,
        iraw: &mut Individual
    ) -> bool;
fn put_kv(&mut self, storage: StorageId, key: &str, val: &str) -> bool;
fn put_kv_raw(
        &mut self,
        storage: StorageId,
        key: &str,
        val: Vec<u8>
    ) -> bool;
fn get_v(&mut self, storage: StorageId, key: &str) -> Option<String>;
fn get_raw(&mut self, storage: StorageId, key: &str) -> Vec<u8>;
fn remove(&mut self, storage: StorageId, key: &str) -> bool; }

Required methods

fn get_individual_from_db(
    &mut self,
    storage: StorageId,
    id: &str,
    iraw: &mut Individual
) -> bool
[src]

fn put_kv(&mut self, storage: StorageId, key: &str, val: &str) -> bool[src]

fn put_kv_raw(&mut self, storage: StorageId, key: &str, val: Vec<u8>) -> bool[src]

fn get_v(&mut self, storage: StorageId, key: &str) -> Option<String>[src]

fn get_raw(&mut self, storage: StorageId, key: &str) -> Vec<u8>[src]

fn remove(&mut self, storage: StorageId, key: &str) -> bool[src]

Loading content...

Implementors

Loading content...