pub struct InMemoryCheckpointStore { /* private fields */ }Expand description
In-memory checkpoint store for tracking projection progress.
InMemoryCheckpointStore stores checkpoint positions in memory using a
thread-safe Arc<RwLock<HashMap>>. It is primarily useful for testing
and single-process deployments where persistence across restarts is not required.
For production deployments requiring durability, use a persistent checkpoint store implementation.
§Example
ⓘ
use eventcore_memory::InMemoryCheckpointStore;
let checkpoint_store = InMemoryCheckpointStore::new();
// Use with ProjectionRunnerImplementations§
Trait Implementations§
Source§impl CheckpointStore for InMemoryCheckpointStore
impl CheckpointStore for InMemoryCheckpointStore
Source§impl Clone for InMemoryCheckpointStore
impl Clone for InMemoryCheckpointStore
Source§fn clone(&self) -> InMemoryCheckpointStore
fn clone(&self) -> InMemoryCheckpointStore
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 Debug for InMemoryCheckpointStore
impl Debug for InMemoryCheckpointStore
Source§impl Default for InMemoryCheckpointStore
impl Default for InMemoryCheckpointStore
Source§fn default() -> InMemoryCheckpointStore
fn default() -> InMemoryCheckpointStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCheckpointStore
impl RefUnwindSafe for InMemoryCheckpointStore
impl Send for InMemoryCheckpointStore
impl Sync for InMemoryCheckpointStore
impl Unpin for InMemoryCheckpointStore
impl UnwindSafe for InMemoryCheckpointStore
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