Struct srt_protocol::options::ByteCount
source · pub struct ByteCount(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 Div<PacketSize> for ByteCount
impl Div<PacketSize> for ByteCount
§type Output = PacketCount
type Output = PacketCount
The resulting type after applying the
/
operator.source§impl Ord for ByteCount
impl Ord for ByteCount
source§impl PartialEq<ByteCount> for ByteCount
impl PartialEq<ByteCount> for ByteCount
source§impl PartialOrd<ByteCount> for ByteCount
impl PartialOrd<ByteCount> for ByteCount
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 ByteCount
impl Eq for ByteCount
impl StructuralEq for ByteCount
impl StructuralPartialEq for ByteCount
Auto Trait Implementations§
impl RefUnwindSafe for ByteCount
impl Send for ByteCount
impl Sync for ByteCount
impl Unpin for ByteCount
impl UnwindSafe for ByteCount
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.