[−][src]Struct cqrs::memory::StateStore
An in-memory store for aggregate snapshots.
Methods
impl<A, Hasher> StateStore<A, Hasher> where
A: Aggregate + Clone,
Hasher: BuildHasher,
[src]
A: Aggregate + Clone,
Hasher: BuildHasher,
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]
A: Aggregate + Clone,
Hasher: BuildHasher + Default,
impl<A: Debug, Hasher: Debug> Debug for StateStore<A, Hasher> where
A: Aggregate + Clone,
Hasher: BuildHasher,
[src]
A: Aggregate + Clone,
Hasher: BuildHasher,
impl<A, Hasher> SnapshotSource<A> for StateStore<A, Hasher> where
A: Aggregate + Clone,
Hasher: BuildHasher,
[src]
A: Aggregate + Clone,
Hasher: BuildHasher,
type Error = Void
The error type.
fn get_snapshot<I>(
&self,
id: &I
) -> Result<Option<VersionedAggregate<A>>, Self::Error> where
I: AggregateId<A>,
Self: Sized,
[src]
&self,
id: &I
) -> Result<Option<VersionedAggregate<A>>, Self::Error> where
I: AggregateId<A>,
Self: Sized,
impl<A, Hasher> SnapshotSink<A> for StateStore<A, Hasher> where
A: Aggregate + Clone,
Hasher: BuildHasher,
[src]
A: Aggregate + Clone,
Hasher: BuildHasher,
Auto Trait Implementations
impl<A, Hasher> Sync for StateStore<A, Hasher> where
A: Send + Sync,
Hasher: Send + Sync,
A: Send + Sync,
Hasher: Send + Sync,
impl<A, Hasher> Unpin for StateStore<A, Hasher> where
A: Unpin,
Hasher: Unpin,
A: Unpin,
Hasher: Unpin,
impl<A, Hasher> Send for StateStore<A, Hasher> where
A: Send,
Hasher: Send,
A: Send,
Hasher: Send,
impl<A, Hasher> UnwindSafe for StateStore<A, Hasher> where
A: UnwindSafe,
Hasher: UnwindSafe,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,