pub struct LinkStats(/* private fields */);Implementations§
Source§impl LinkStats
impl LinkStats
pub fn inc_bytes(&self, direction: StatsDirection, bytes: u64)
pub fn inc_transport_message(&self, direction: StatsDirection, count: u64)
pub fn inc_network_message( &self, direction: StatsDirection, msg: impl NetworkMessageExt, )
pub fn tx_observe_congestion(&self, msg: impl NetworkMessageExt)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkStats
impl !RefUnwindSafe for LinkStats
impl Send for LinkStats
impl Sync for LinkStats
impl Unpin for LinkStats
impl UnsafeUnpin for LinkStats
impl !UnwindSafe for LinkStats
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