pub struct RelayStats {
pub inbound: u64,
pub outbound: u64,
}Expand description
Bytes transferred in each direction during a relay session.
Fields§
§inbound: u64Bytes from inbound to outbound (client → target).
outbound: u64Bytes from outbound to inbound (target → client).
Implementations§
Trait Implementations§
Source§impl Clone for RelayStats
impl Clone for RelayStats
Source§fn clone(&self) -> RelayStats
fn clone(&self) -> RelayStats
Returns a duplicate 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 RelayStats
impl Debug for RelayStats
Source§impl Default for RelayStats
impl Default for RelayStats
Source§fn default() -> RelayStats
fn default() -> RelayStats
Returns the “default value” for a type. Read more
impl Copy for RelayStats
Auto Trait Implementations§
impl Freeze for RelayStats
impl RefUnwindSafe for RelayStats
impl Send for RelayStats
impl Sync for RelayStats
impl Unpin for RelayStats
impl UnsafeUnpin for RelayStats
impl UnwindSafe for RelayStats
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