pub struct PacketCount(pub u64);
Tuple Fields§
§0: u64
Implementations§
Source§impl PacketCount
impl PacketCount
pub fn for_time_window( window: Duration, packet_spacing: Duration, ) -> PacketCount
Trait Implementations§
Source§impl Clone for PacketCount
impl Clone for PacketCount
Source§fn clone(&self) -> PacketCount
fn clone(&self) -> PacketCount
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 PacketCount
impl Debug for PacketCount
Source§impl Deref for PacketCount
impl Deref for PacketCount
Source§impl Display for PacketCount
impl Display for PacketCount
Source§impl From<PacketCount> for u64
impl From<PacketCount> for u64
Source§fn from(original: PacketCount) -> Self
fn from(original: PacketCount) -> Self
Converts to this type from the input type.
Source§impl From<PacketCount> for usize
impl From<PacketCount> for usize
Source§fn from(value: PacketCount) -> Self
fn from(value: PacketCount) -> Self
Converts to this type from the input type.
Source§impl Mul<PacketCount> for PacketPeriod
impl Mul<PacketCount> for PacketPeriod
Source§impl Mul<PacketCount> for PacketSize
impl Mul<PacketCount> for PacketSize
Source§impl Mul<PacketPeriod> for PacketCount
impl Mul<PacketPeriod> for PacketCount
Source§impl Mul<PacketSize> for PacketCount
impl Mul<PacketSize> for PacketCount
Source§impl Ord for PacketCount
impl Ord for PacketCount
Source§fn cmp(&self, other: &PacketCount) -> Ordering
fn cmp(&self, other: &PacketCount) -> 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 PacketCount
impl PartialEq for PacketCount
Source§impl PartialOrd for PacketCount
impl PartialOrd for PacketCount
impl Copy for PacketCount
impl Eq for PacketCount
impl StructuralPartialEq for PacketCount
Auto Trait Implementations§
impl Freeze for PacketCount
impl RefUnwindSafe for PacketCount
impl Send for PacketCount
impl Sync for PacketCount
impl Unpin 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
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.