Struct srt_protocol::options::PacketCount
source · 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
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
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<PacketCount> for PacketCount
impl PartialEq<PacketCount> for PacketCount
source§fn eq(&self, other: &PacketCount) -> bool
fn eq(&self, other: &PacketCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PacketCount> for PacketCount
impl PartialOrd<PacketCount> for PacketCount
source§fn partial_cmp(&self, other: &PacketCount) -> Option<Ordering>
fn partial_cmp(&self, other: &PacketCount) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PacketCount
impl Eq for PacketCount
impl StructuralEq for PacketCount
impl StructuralPartialEq for PacketCount
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.