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();
// Implements CheckpointStore for tracking projection progress.Implementations§
Trait Implementations§
Source§impl CheckpointStore for InMemoryCheckpointStore
impl CheckpointStore for InMemoryCheckpointStore
Source§impl Clone for InMemoryCheckpointStore
impl Clone for InMemoryCheckpointStore
Source§impl Debug for InMemoryCheckpointStore
impl Debug for InMemoryCheckpointStore
Auto Trait Implementations§
impl Freeze for InMemoryCheckpointStore
impl RefUnwindSafe for InMemoryCheckpointStore
impl Send for InMemoryCheckpointStore
impl Sync for InMemoryCheckpointStore
impl Unpin for InMemoryCheckpointStore
impl UnsafeUnpin 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