Struct TransferredBytes
pub struct TransferredBytes {
pub sent: u64,
pub received: u64,
}Expand description
Bytes a session carried over all its connections, the closed ones
included; unlike TransportStats, it keeps counting across a migration.
Fields§
§sent: u64§received: u64Trait Implementations§
§impl Clone for TransferredBytes
impl Clone for TransferredBytes
§fn clone(&self) -> TransferredBytes
fn clone(&self) -> TransferredBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransferredBytes
§impl Debug for TransferredBytes
impl Debug for TransferredBytes
§impl Default for TransferredBytes
impl Default for TransferredBytes
§fn default() -> TransferredBytes
fn default() -> TransferredBytes
Returns the “default value” for a type. Read more
impl Eq for TransferredBytes
§impl PartialEq for TransferredBytes
impl PartialEq for TransferredBytes
impl StructuralPartialEq for TransferredBytes
Auto Trait Implementations§
impl Freeze for TransferredBytes
impl RefUnwindSafe for TransferredBytes
impl Send for TransferredBytes
impl Sync for TransferredBytes
impl Unpin for TransferredBytes
impl UnsafeUnpin for TransferredBytes
impl UnwindSafe for TransferredBytes
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.