pub struct SeqGenerator { /* private fields */ }Expand description
Async sequence generator matching Mars xlog semantics.
Implementations§
Source§impl SeqGenerator
impl SeqGenerator
Sourcepub fn next_async(&self) -> u16
pub fn next_async(&self) -> u16
Generate the next async sequence number.
Matches the historical C++ behavior: increment first, then skip 0.
Under wraparound races concurrent callers may observe gaps, but 0 is
never returned and values are not reused.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SeqGenerator
impl RefUnwindSafe for SeqGenerator
impl Send for SeqGenerator
impl Sync for SeqGenerator
impl Unpin for SeqGenerator
impl UnsafeUnpin for SeqGenerator
impl UnwindSafe for SeqGenerator
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