Trait casper_execution_engine::storage::store::Store[][src]

pub trait Store<K, V> {
    type Error: From<Error>;
    type Handle;
    fn handle(&self) -> Self::Handle;

    fn get<T>(&self, txn: &T, key: &K) -> Result<Option<V>, Self::Error>
    where
        T: Readable<Handle = Self::Handle>,
        K: ToBytes,
        V: FromBytes,
        Self::Error: From<T::Error>
, { ... }
fn put<T>(&self, txn: &mut T, key: &K, value: &V) -> Result<(), Self::Error>
    where
        T: Writable<Handle = Self::Handle>,
        K: ToBytes,
        V: ToBytes,
        Self::Error: From<T::Error>
, { ... } }

Associated Types

Required methods

fn handle(&self) -> Self::Handle[src]

Provided methods

fn get<T>(&self, txn: &T, key: &K) -> Result<Option<V>, Self::Error> where
    T: Readable<Handle = Self::Handle>,
    K: ToBytes,
    V: FromBytes,
    Self::Error: From<T::Error>, 
[src]

fn put<T>(&self, txn: &mut T, key: &K, value: &V) -> Result<(), Self::Error> where
    T: Writable<Handle = Self::Handle>,
    K: ToBytes,
    V: ToBytes,
    Self::Error: From<T::Error>, 
[src]

Implementors