pub struct StreamStatsAccumulator { /* private fields */ }Expand description
Shared, cloneable handle to one stream’s counters.
The receive engine writes them, packet by packet, from its own thread; any
clone can snapshot them, from any thread.
Implementations§
Source§impl StreamStatsAccumulator
impl StreamStatsAccumulator
Sourcepub fn snapshot(&self) -> StreamStats
pub fn snapshot(&self) -> StreamStats
Produce a snapshot of the accumulated statistics.
Trait Implementations§
Source§impl Clone for StreamStatsAccumulator
impl Clone for StreamStatsAccumulator
Auto Trait Implementations§
impl Freeze for StreamStatsAccumulator
impl RefUnwindSafe for StreamStatsAccumulator
impl Send for StreamStatsAccumulator
impl Sync for StreamStatsAccumulator
impl Unpin for StreamStatsAccumulator
impl UnsafeUnpin for StreamStatsAccumulator
impl UnwindSafe for StreamStatsAccumulator
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