pub struct NullSnapshotStore<A>(/* private fields */)
where
A: Aggregate;
Expand description
A trivial store that never has any snapshots, and which always succeeds in persisting data (which is immediately dropped).
Implementations§
Trait Implementations§
Source§impl<A> Clone for NullSnapshotStore<A>
impl<A> Clone for NullSnapshotStore<A>
Source§fn clone(&self) -> NullSnapshotStore<A>
fn clone(&self) -> NullSnapshotStore<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A> Debug for NullSnapshotStore<A>where
A: Aggregate,
impl<A> Debug for NullSnapshotStore<A>where
A: Aggregate,
Source§impl<A> Default for NullSnapshotStore<A>where
A: Aggregate,
impl<A> Default for NullSnapshotStore<A>where
A: Aggregate,
Source§impl<A> SnapshotSink<A> for NullSnapshotStore<A>where
A: Aggregate,
impl<A> SnapshotSink<A> for NullSnapshotStore<A>where
A: Aggregate,
Source§impl<A> SnapshotSource<A> for NullSnapshotStore<A>where
A: Aggregate,
impl<A> SnapshotSource<A> for NullSnapshotStore<A>where
A: Aggregate,
Source§fn get_snapshot<I>(
&self,
_id: &I,
) -> Result<Option<VersionedAggregate<A>>, Self::Error>where
I: AggregateId<A>,
Self: Sized,
fn get_snapshot<I>(
&self,
_id: &I,
) -> Result<Option<VersionedAggregate<A>>, Self::Error>where
I: AggregateId<A>,
Self: Sized,
Loads a versioned aggregate from the snapshot source.
impl<A> Copy for NullSnapshotStore<A>
Auto Trait Implementations§
impl<A> Freeze for NullSnapshotStore<A>
impl<A> RefUnwindSafe for NullSnapshotStore<A>where
A: RefUnwindSafe,
impl<A> !Send for NullSnapshotStore<A>
impl<A> !Sync for NullSnapshotStore<A>
impl<A> Unpin for NullSnapshotStore<A>
impl<A> UnwindSafe for NullSnapshotStore<A>where
A: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more