pub struct EventSequencer { /* private fields */ }Expand description
Sole allocator of transaction event sequence numbers (starts at 1).
Implementations§
Source§impl EventSequencer
impl EventSequencer
Sourcepub fn peek_next(&self) -> u64
pub fn peek_next(&self) -> u64
Next sequence that Self::allocate will return (D-036 peek-before-enqueue).
Sourcepub fn last_allocated(&self) -> u64
pub fn last_allocated(&self) -> u64
Last allocated sequence (0 if none).
Trait Implementations§
Source§impl Debug for EventSequencer
impl Debug for EventSequencer
Auto Trait Implementations§
impl !Freeze for EventSequencer
impl RefUnwindSafe for EventSequencer
impl Send for EventSequencer
impl Sync for EventSequencer
impl Unpin for EventSequencer
impl UnsafeUnpin for EventSequencer
impl UnwindSafe for EventSequencer
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