Trait microkelvin::Store[][src]

pub trait Store: Clone + Fallible<Error = Infallible> {
    type Identifier: Copy;
    type Storage: Storage<Self::Identifier>;
    fn put<T>(&self, t: &T) -> Stored<T, Self>
    where
        T: Serialize<Self::Storage>
;
fn get_raw<'a, T>(
        &'a self,
        ident: &Ident<Self::Identifier, T>
    ) -> &'a T::Archived
    where
        T: Archive
; }
Expand description

A type that works as a handle to a Storage backend.

Associated Types

The identifier used for refering to stored values

The underlying storage

Required methods

Put a value into storage, and get a representative token back

Gets a reference to an archived value

Implementors