pub struct InMemoryCursorStore { /* private fields */ }Expand description
HashMap-backed CursorStore for fixtures and unit tests.
Commits are in-memory only and are lost across process restarts; not suitable for production. A sqlite-backed impl is the usual next step for single-node indexers; Postgres or Redis for HA.
Implementations§
Trait Implementations§
Source§impl CursorStore for InMemoryCursorStore
impl CursorStore for InMemoryCursorStore
Source§impl Debug for InMemoryCursorStore
impl Debug for InMemoryCursorStore
Source§impl Default for InMemoryCursorStore
impl Default for InMemoryCursorStore
Source§fn default() -> InMemoryCursorStore
fn default() -> InMemoryCursorStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryCursorStore
impl RefUnwindSafe for InMemoryCursorStore
impl Send for InMemoryCursorStore
impl Sync for InMemoryCursorStore
impl Unpin for InMemoryCursorStore
impl UnsafeUnpin for InMemoryCursorStore
impl UnwindSafe for InMemoryCursorStore
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