pub struct PacketCount(pub i64);Expand description
A count of packets.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Add for PacketCount
impl Add for PacketCount
Source§impl Add<PacketCount> for PacketNumber
impl Add<PacketCount> for PacketNumber
Source§type Output = PacketNumber
type Output = PacketNumber
The resulting type after applying the
+ operator.Source§fn add(self, rhs: PacketCount) -> Self
fn add(self, rhs: PacketCount) -> Self
Performs the
+ operation. Read moreSource§impl AddAssign for PacketCount
impl AddAssign for PacketCount
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl AddAssign<PacketCount> for PacketNumber
impl AddAssign<PacketCount> for PacketNumber
Source§fn add_assign(&mut self, rhs: PacketCount)
fn add_assign(&mut self, rhs: PacketCount)
Performs the
+= operation. Read moreSource§impl Clone for PacketCount
impl Clone for PacketCount
Source§fn clone(&self) -> PacketCount
fn clone(&self) -> PacketCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PacketCount
Source§impl Debug for PacketCount
impl Debug for PacketCount
Source§impl Hash for PacketCount
impl Hash for PacketCount
Source§impl PartialEq for PacketCount
impl PartialEq for PacketCount
Source§fn eq(&self, other: &PacketCount) -> bool
fn eq(&self, other: &PacketCount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PacketCount
impl PartialOrd for PacketCount
impl StructuralPartialEq for PacketCount
Source§impl Sub for PacketCount
impl Sub for PacketCount
Source§impl Sub<PacketCount> for PacketNumber
impl Sub<PacketCount> for PacketNumber
Source§type Output = PacketNumber
type Output = PacketNumber
The resulting type after applying the
- operator.Source§fn sub(self, rhs: PacketCount) -> Self
fn sub(self, rhs: PacketCount) -> Self
Performs the
- operation. Read moreSource§impl SubAssign for PacketCount
impl SubAssign for PacketCount
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for PacketCount
impl RefUnwindSafe for PacketCount
impl Send for PacketCount
impl Sync for PacketCount
impl Unpin for PacketCount
impl UnsafeUnpin for PacketCount
impl UnwindSafe for PacketCount
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