pub struct SequenceCounterSyncCustomWrapU16 { /* 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 SequenceCounterSyncCustomWrapU16
impl SequenceCounter for SequenceCounterSyncCustomWrapU16
Source§const MAX_BIT_WIDTH: usize = 16usize
const MAX_BIT_WIDTH: usize = 16usize
Bit width of the counter.
Source§fn get_and_increment(&self) -> u16
fn get_and_increment(&self) -> u16
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 SequenceCounterSyncCustomWrapU16
impl RefUnwindSafe for SequenceCounterSyncCustomWrapU16
impl Send for SequenceCounterSyncCustomWrapU16
impl Sync for SequenceCounterSyncCustomWrapU16
impl Unpin for SequenceCounterSyncCustomWrapU16
impl UnwindSafe for SequenceCounterSyncCustomWrapU16
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