Struct srt_protocol::options::PacketSize
source · pub struct PacketSize(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 Add<PacketSize> for PacketSize
impl Add<PacketSize> for PacketSize
§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
§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<PacketSize> for PacketSize
impl PartialEq<PacketSize> for PacketSize
source§fn eq(&self, other: &PacketSize) -> bool
fn eq(&self, other: &PacketSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PacketSize> for PacketSize
impl PartialOrd<PacketSize> for PacketSize
source§fn partial_cmp(&self, other: &PacketSize) -> Option<Ordering>
fn partial_cmp(&self, other: &PacketSize) -> 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 moresource§impl Sub<PacketSize> for PacketSize
impl Sub<PacketSize> for PacketSize
§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 StructuralEq for PacketSize
impl StructuralPartialEq for PacketSize
Auto Trait Implementations§
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<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.