pub struct InMemorySnapshotStore<P> { /* private fields */ }Trait Implementations§
Source§impl<P: Clone> Clone for InMemorySnapshotStore<P>
impl<P: Clone> Clone for InMemorySnapshotStore<P>
Source§fn clone(&self) -> InMemorySnapshotStore<P>
fn clone(&self) -> InMemorySnapshotStore<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for InMemorySnapshotStore<P>
impl<P: Debug> Debug for InMemorySnapshotStore<P>
Source§impl<P: Default> Default for InMemorySnapshotStore<P>
impl<P: Default> Default for InMemorySnapshotStore<P>
Source§fn default() -> InMemorySnapshotStore<P>
fn default() -> InMemorySnapshotStore<P>
Returns the “default value” for a type. Read more
Source§impl<P> SnapshotStore<P> for InMemorySnapshotStore<P>
impl<P> SnapshotStore<P> for InMemorySnapshotStore<P>
Source§fn save(&mut self, snapshot: &ProjectionSnapshot<P>) -> Result<()>
fn save(&mut self, snapshot: &ProjectionSnapshot<P>) -> Result<()>
Saves an immutable projection snapshot. Read more
Source§fn load_latest(&self) -> Result<Option<ProjectionSnapshot<P>>>
fn load_latest(&self) -> Result<Option<ProjectionSnapshot<P>>>
Loads the snapshot with the greatest global event position. Read more
Auto Trait Implementations§
impl<P> Freeze for InMemorySnapshotStore<P>
impl<P> RefUnwindSafe for InMemorySnapshotStore<P>where
P: RefUnwindSafe,
impl<P> Send for InMemorySnapshotStore<P>where
P: Send,
impl<P> Sync for InMemorySnapshotStore<P>where
P: Sync,
impl<P> Unpin for InMemorySnapshotStore<P>
impl<P> UnsafeUnpin for InMemorySnapshotStore<P>
impl<P> UnwindSafe for InMemorySnapshotStore<P>where
P: 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