pub struct SeqNumber(pub u32);
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
Source§impl AddAssign<u32> for SeqNumber
impl AddAssign<u32> for SeqNumber
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+=
operation. Read moreSource§impl Distribution<SeqNumber> for Standard
impl Distribution<SeqNumber> for Standard
Source§impl<'a> FromIterator<&'a SeqNumber> for CompressedLossList
impl<'a> FromIterator<&'a SeqNumber> for CompressedLossList
Source§impl FromIterator<SeqNumber> for CompressedLossList
impl FromIterator<SeqNumber> for CompressedLossList
Source§impl Ord for SeqNumber
Ordering sequence numbers is difficult, as they are modular
How it works is if the absolute value of the difference between sequence numbers is greater than
MAX_DIFF, then wrapping is assumed
impl Ord for SeqNumber
Ordering sequence numbers is difficult, as they are modular How it works is if the absolute value of the difference between sequence numbers is greater than MAX_DIFF, then wrapping is assumed
Source§impl PartialOrd for SeqNumber
impl PartialOrd for SeqNumber
Source§impl Sub<u32> for SeqNumber
Move a sequence number backwards by an offset
ie: SeqNumber(3) - 2 == 1
and SeqNumber(0) - 1 == SeqNumber(MAX)
impl Sub<u32> for SeqNumber
Move a sequence number backwards by an offset ie: SeqNumber(3) - 2 == 1 and SeqNumber(0) - 1 == SeqNumber(MAX)
Source§impl Sub for SeqNumber
Gets the distance between two sequence numbers
Always measured with first one first and the second one second
ie: SeqNumber(0) - SeqNumber(MAX) == 1
and SeqNumber(1) - SeqNumber(0) == 1
impl Sub for SeqNumber
Gets the distance between two sequence numbers Always measured with first one first and the second one second ie: SeqNumber(0) - SeqNumber(MAX) == 1 and SeqNumber(1) - SeqNumber(0) == 1
impl Copy for SeqNumber
impl Eq for SeqNumber
impl StructuralPartialEq for SeqNumber
Auto Trait Implementations§
impl Freeze for SeqNumber
impl RefUnwindSafe for SeqNumber
impl Send for SeqNumber
impl Sync for SeqNumber
impl Unpin for SeqNumber
impl UnwindSafe for SeqNumber
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.