pub struct InMemorySeq { /* private fields */ }Expand description
In-memory sequence counter.
Resets on process restart — use only when the consumer either performs a fresh login
after restart (which establishes a new HDM session) or doesn’t care about cross-restart
continuity.
Implementations§
Source§impl InMemorySeq
impl InMemorySeq
Sourcepub const fn starting_at(initial: i64) -> Self
pub const fn starting_at(initial: i64) -> Self
Start the counter so that the first call to Self::next returns initial + 1.
Sourcepub const fn from_zero() -> Self
pub const fn from_zero() -> Self
Start the counter so that the first call to Self::next returns 1.
Trait Implementations§
Source§impl Debug for InMemorySeq
impl Debug for InMemorySeq
Source§impl Default for InMemorySeq
impl Default for InMemorySeq
Auto Trait Implementations§
impl Freeze for InMemorySeq
impl RefUnwindSafe for InMemorySeq
impl Send for InMemorySeq
impl Sync for InMemorySeq
impl Unpin for InMemorySeq
impl UnsafeUnpin for InMemorySeq
impl UnwindSafe for InMemorySeq
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