pub struct StatBatcher { /* private fields */ }Expand description
Accumulates stats locally so that semi-trusted nodes (bridges, exits) can ship them to the broker in periodic batches: counters with identical name+tags are summed, gauges keep the last value, and timers are kept as individual events.
Implementations§
Source§impl StatBatcher
impl StatBatcher
Trait Implementations§
Source§impl Default for StatBatcher
impl Default for StatBatcher
Source§fn default() -> StatBatcher
fn default() -> StatBatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for StatBatcher
impl RefUnwindSafe for StatBatcher
impl Send for StatBatcher
impl Sync for StatBatcher
impl Unpin for StatBatcher
impl UnsafeUnpin for StatBatcher
impl UnwindSafe for StatBatcher
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