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
type Identifier: Copy
type Identifier: Copy
The identifier used for refering to stored values
type Storage: Storage<Self::Identifier>
type Storage: Storage<Self::Identifier>
The underlying storage
Required methods
Put a value into storage, and get a representative token back