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>,
{ ... }
}Expand description
Store is reponsible for abstracting get and put operations over the underlying store
specified by its associated Handle type.
Associated Types
Required methods
Provided methods
Returns an optional value (may exist or not) as read through a transaction, or an error
of the associated Self::Error variety.