pub struct SequenceCount(/* private fields */);Expand description
The 14-bit packet sequence count.
A rolling counter for packets with a specific APID. This allows the receiver to detect dropped or out-of-order packets. The count wraps around from 16383 to 0.
Implementations§
Source§impl SequenceCount
impl SequenceCount
Trait Implementations§
Source§impl Clone for SequenceCount
impl Clone for SequenceCount
Source§fn clone(&self) -> SequenceCount
fn clone(&self) -> SequenceCount
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 Debug for SequenceCount
impl Debug for SequenceCount
Source§impl Default for SequenceCount
impl Default for SequenceCount
Source§fn default() -> SequenceCount
fn default() -> SequenceCount
Returns the “default value” for a type. Read more
Source§impl From<u16> for SequenceCount
impl From<u16> for SequenceCount
Source§impl Hash for SequenceCount
impl Hash for SequenceCount
Source§impl Ord for SequenceCount
impl Ord for SequenceCount
Source§fn cmp(&self, other: &SequenceCount) -> Ordering
fn cmp(&self, other: &SequenceCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SequenceCount
impl PartialEq for SequenceCount
Source§impl PartialOrd for SequenceCount
impl PartialOrd for SequenceCount
impl Copy for SequenceCount
impl Eq for SequenceCount
impl StructuralPartialEq for SequenceCount
Auto Trait Implementations§
impl Freeze for SequenceCount
impl RefUnwindSafe for SequenceCount
impl Send for SequenceCount
impl Sync for SequenceCount
impl Unpin for SequenceCount
impl UnsafeUnpin for SequenceCount
impl UnwindSafe for SequenceCount
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