pub struct SequenceCounterSyncCustomWrapU64 { /* private fields */ }Expand description
This can be used if a custom wrap value is required when using a thread-safe atomic based sequence counter.
Implementations§
Trait Implementations§
Source§impl SequenceCounter for SequenceCounterSyncCustomWrapU64
impl SequenceCounter for SequenceCounterSyncCustomWrapU64
Source§const MAX_BIT_WIDTH: usize = 64usize
const MAX_BIT_WIDTH: usize = 64usize
Bit width of the counter.
Source§fn get_and_increment(&self) -> u64
fn get_and_increment(&self) -> u64
Get the current sequence count value and increment the counter by one.
Source§fn increment_mut(&mut self)
fn increment_mut(&mut self)
Increment the sequence count by one, mutable API.
Source§fn get_and_increment_mut(&mut self) -> Self::Raw
fn get_and_increment_mut(&mut self) -> Self::Raw
Get the current sequence count value and increment the counter by one, mutable API.
Auto Trait Implementations§
impl !Freeze for SequenceCounterSyncCustomWrapU64
impl RefUnwindSafe for SequenceCounterSyncCustomWrapU64
impl Send for SequenceCounterSyncCustomWrapU64
impl Sync for SequenceCounterSyncCustomWrapU64
impl Unpin for SequenceCounterSyncCustomWrapU64
impl UnwindSafe for SequenceCounterSyncCustomWrapU64
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