Struct srt_protocol::options::PacketRate
source · pub struct PacketRate(pub u64);
Tuple Fields§
§0: u64
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 PacketRate
impl Clone for PacketRate
source§fn clone(&self) -> PacketRate
fn clone(&self) -> PacketRate
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 PacketRate
impl Debug for PacketRate
source§impl Deref for PacketRate
impl Deref for PacketRate
source§impl Display for PacketRate
impl Display for PacketRate
source§impl Div<PacketRate> for DataRate
impl Div<PacketRate> for DataRate
§type Output = PacketSize
type Output = PacketSize
The resulting type after applying the
/
operator.source§impl From<PacketRate> for u64
impl From<PacketRate> for u64
source§fn from(original: PacketRate) -> Self
fn from(original: PacketRate) -> Self
Converts to this type from the input type.
source§impl Mul<Duration> for PacketRate
impl Mul<Duration> for PacketRate
source§impl Mul<PacketRate> for Duration
impl Mul<PacketRate> for Duration
§type Output = PacketCount
type Output = PacketCount
The resulting type after applying the
*
operator.source§impl Ord for PacketRate
impl Ord for PacketRate
source§fn cmp(&self, other: &PacketRate) -> Ordering
fn cmp(&self, other: &PacketRate) -> 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<PacketRate> for PacketRate
impl PartialEq<PacketRate> for PacketRate
source§fn eq(&self, other: &PacketRate) -> bool
fn eq(&self, other: &PacketRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PacketRate> for PacketRate
impl PartialOrd<PacketRate> for PacketRate
source§fn partial_cmp(&self, other: &PacketRate) -> Option<Ordering>
fn partial_cmp(&self, other: &PacketRate) -> 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 PacketRate
impl Eq for PacketRate
impl StructuralEq for PacketRate
impl StructuralPartialEq for PacketRate
Auto Trait Implementations§
impl RefUnwindSafe for PacketRate
impl Send for PacketRate
impl Sync for PacketRate
impl Unpin for PacketRate
impl UnwindSafe for PacketRate
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.