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