pub struct MetricsAggregator { /* private fields */ }Expand description
Metrics aggregator for multiple loggers
Implementations§
Source§impl MetricsAggregator
impl MetricsAggregator
Sourcepub fn add_snapshot(&mut self, snapshot: MetricsSnapshot)
pub fn add_snapshot(&mut self, snapshot: MetricsSnapshot)
Add a metrics snapshot
Sourcepub fn aggregate(&self) -> AggregatedMetrics
pub fn aggregate(&self) -> AggregatedMetrics
Get combined metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsAggregator
impl RefUnwindSafe for MetricsAggregator
impl Send for MetricsAggregator
impl Sync for MetricsAggregator
impl Unpin for MetricsAggregator
impl UnwindSafe for MetricsAggregator
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