[][src]Struct cqrs::memory::StateStore

pub struct StateStore<A, Hasher = RandomState> where
    A: Aggregate + Clone,
    Hasher: BuildHasher
{ /* fields omitted */ }

An in-memory store for aggregate snapshots.

Methods

impl<A, Hasher> StateStore<A, Hasher> where
    A: Aggregate + Clone,
    Hasher: BuildHasher
[src]

pub fn with_hasher(hasher: Hasher) -> Self[src]

Constructs a new snapshot store with a specific hasher.

Trait Implementations

impl<A, Hasher> Default for StateStore<A, Hasher> where
    A: Aggregate + Clone,
    Hasher: BuildHasher + Default
[src]

impl<A: Debug, Hasher: Debug> Debug for StateStore<A, Hasher> where
    A: Aggregate + Clone,
    Hasher: BuildHasher
[src]

impl<A, Hasher> SnapshotSource<A> for StateStore<A, Hasher> where
    A: Aggregate + Clone,
    Hasher: BuildHasher
[src]

type Error = Void

The error type.

impl<A, Hasher> SnapshotSink<A> for StateStore<A, Hasher> where
    A: Aggregate + Clone,
    Hasher: BuildHasher
[src]

type Error = Void

The error type.

Auto Trait Implementations

impl<A, Hasher> Sync for StateStore<A, Hasher> where
    A: Send + Sync,
    Hasher: Send + Sync

impl<A, Hasher> Unpin for StateStore<A, Hasher> where
    A: Unpin,
    Hasher: Unpin

impl<A, Hasher> Send for StateStore<A, Hasher> where
    A: Send,
    Hasher: Send

impl<A, Hasher> UnwindSafe for StateStore<A, Hasher> where
    A: UnwindSafe,
    Hasher: UnwindSafe

impl<A, Hasher = RandomState> !RefUnwindSafe for StateStore<A, Hasher>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]