[][src]Trait orga::state::State

pub trait State<S: Read>: Sized {
    fn wrap_store(store: S) -> Result<Self>;
}

A trait for types which provide a higher-level API for data stored within a store::Store.

Required methods

fn wrap_store(store: S) -> Result<Self>

Loading content...

Implementors

impl<S, K, V> State<S> for Map<S, K, V> where
    S: Read,
    K: Encode + Decode,
    V: Encode + Decode
[src]

fn wrap_store(store: S) -> Result<Self>[src]

Constructs a Map which is backed by the given store.

impl<S: Read> State<S> for WrapperStore<S>[src]

impl<S: Read, T: Encode + Decode> State<S> for Deque<S, T>[src]

fn wrap_store(store: S) -> Result<Self>[src]

Wraps the store to allow reading from and writing to the deque.

This wrap_store implementation will also read the Meta value (containing the head and tail indices) and store its contents in memory.

impl<S: Read, T: Encode + Decode> State<S> for Set<S, T>[src]

fn wrap_store(store: S) -> Result<Self>[src]

Constructs a Set which is backed by the given store.

impl<S: Read, T: Encode + Decode> State<S> for Value<S, T>[src]

fn wrap_store(store: S) -> Result<Value<S, T>, Error>[src]

Constructs a Value by wrapping a store instance.

Loading content...