Struct smoltcp::wire::TcpSeqNumber
[−]
[src]
pub struct TcpSeqNumber(pub i32);
A TCP sequence number.
A sequence number is a monotonically advancing integer modulo 232. Sequence numbers do not have a discontiguity when compared pairwise across a signed overflow.
Trait Implementations
impl Debug for SeqNumber
[src]
impl PartialEq for SeqNumber
[src]
fn eq(&self, __arg_0: &SeqNumber) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SeqNumber) -> bool
[src]
This method tests for !=
.
impl Eq for SeqNumber
[src]
impl Clone for SeqNumber
[src]
fn clone(&self) -> SeqNumber
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SeqNumber
[src]
impl Default for SeqNumber
[src]
impl Display for SeqNumber
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Add<usize> for SeqNumber
[src]
type Output = SeqNumber
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> SeqNumber
[src]
Performs the +
operation.
impl Sub<usize> for SeqNumber
[src]
type Output = SeqNumber
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> SeqNumber
[src]
Performs the -
operation.
impl AddAssign<usize> for SeqNumber
[src]
fn add_assign(&mut self, rhs: usize)
[src]
Performs the +=
operation.
impl Sub for SeqNumber
[src]
type Output = usize
The resulting type after applying the -
operator.
fn sub(self, rhs: SeqNumber) -> usize
[src]
Performs the -
operation.
impl PartialOrd for SeqNumber
[src]
fn partial_cmp(&self, other: &SeqNumber) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more