pub struct PacketSize(pub u64);
Tuple Fields§
§0: u64
Trait Implementations§
Source§impl Add for PacketSize
impl Add for PacketSize
Source§type Output = PacketSize
type Output = PacketSize
The resulting type after applying the
+
operator.Source§fn add(self, rhs: PacketSize) -> PacketSize
fn add(self, rhs: PacketSize) -> PacketSize
Performs the
+
operation. Read moreSource§impl Clone for PacketSize
impl Clone for PacketSize
Source§fn clone(&self) -> PacketSize
fn clone(&self) -> PacketSize
Returns a copy 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 PacketSize
impl Debug for PacketSize
Source§impl Deref for PacketSize
impl Deref for PacketSize
Source§impl Display for PacketSize
impl Display for PacketSize
Source§impl Div<PacketSize> for ByteCount
impl Div<PacketSize> for ByteCount
Source§type Output = PacketCount
type Output = PacketCount
The resulting type after applying the
/
operator.Source§impl From<PacketSize> for u64
impl From<PacketSize> for u64
Source§fn from(original: PacketSize) -> Self
fn from(original: PacketSize) -> Self
Converts to this type from the input type.
Source§impl From<PacketSize> for usize
impl From<PacketSize> for usize
Source§fn from(value: PacketSize) -> Self
fn from(value: PacketSize) -> Self
Converts to this type from the input type.
Source§impl Mul<PacketCount> for PacketSize
impl Mul<PacketCount> for PacketSize
Source§impl Mul<PacketSize> for PacketCount
impl Mul<PacketSize> for PacketCount
Source§impl Ord for PacketSize
impl Ord for PacketSize
Source§fn cmp(&self, other: &PacketSize) -> Ordering
fn cmp(&self, other: &PacketSize) -> 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 PacketSize
impl PartialEq for PacketSize
Source§impl PartialOrd for PacketSize
impl PartialOrd for PacketSize
Source§impl Sub for PacketSize
impl Sub for PacketSize
Source§type Output = PacketSize
type Output = PacketSize
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: PacketSize) -> PacketSize
fn sub(self, rhs: PacketSize) -> PacketSize
Performs the
-
operation. Read moreimpl Copy for PacketSize
impl Eq for PacketSize
impl StructuralPartialEq for PacketSize
Auto Trait Implementations§
impl Freeze for PacketSize
impl RefUnwindSafe for PacketSize
impl Send for PacketSize
impl Sync for PacketSize
impl Unpin for PacketSize
impl UnwindSafe for PacketSize
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.