pub struct InMemoryOffsetStore { /* private fields */ }Expand description
In-memory offset store — useful for tests. State is kept in a
Mutex<HashMap>; survives restarts of the publisher loop, but not
process restarts.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryOffsetStore
impl Default for InMemoryOffsetStore
Source§fn default() -> InMemoryOffsetStore
fn default() -> InMemoryOffsetStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryOffsetStore
impl !RefUnwindSafe for InMemoryOffsetStore
impl Send for InMemoryOffsetStore
impl Sync for InMemoryOffsetStore
impl Unpin for InMemoryOffsetStore
impl UnsafeUnpin for InMemoryOffsetStore
impl !UnwindSafe for InMemoryOffsetStore
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