pub struct SequenceCounterCcsdsSimple { /* private fields */ }Expand description
This is a sequence count provider which wraps around at MAX_SEQ_COUNT.
Trait Implementations§
Source§impl Clone for SequenceCounterCcsdsSimple
impl Clone for SequenceCounterCcsdsSimple
Source§fn clone(&self) -> SequenceCounterCcsdsSimple
fn clone(&self) -> SequenceCounterCcsdsSimple
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SequenceCounterCcsdsSimple
impl Default for SequenceCounterCcsdsSimple
Source§impl SequenceCounter for SequenceCounterCcsdsSimple
impl SequenceCounter for SequenceCounterCcsdsSimple
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 SequenceCounterCcsdsSimple
impl !RefUnwindSafe for SequenceCounterCcsdsSimple
impl Send for SequenceCounterCcsdsSimple
impl !Sync for SequenceCounterCcsdsSimple
impl Unpin for SequenceCounterCcsdsSimple
impl UnwindSafe for SequenceCounterCcsdsSimple
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