pub struct JsonReporter { /* private fields */ }Expand description
JSON reporter that outputs metrics as JSON.
Implementations§
Trait Implementations§
Source§impl Default for JsonReporter
impl Default for JsonReporter
Source§impl MetricsReporter for JsonReporter
impl MetricsReporter for JsonReporter
Source§fn report_metric<'life0, 'life1, 'async_trait>(
&'life0 self,
metric: &'life1 Metric,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn report_metric<'life0, 'life1, 'async_trait>(
&'life0 self,
metric: &'life1 Metric,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Report a single metric.
Auto Trait Implementations§
impl Freeze for JsonReporter
impl RefUnwindSafe for JsonReporter
impl Send for JsonReporter
impl Sync for JsonReporter
impl Unpin for JsonReporter
impl UnsafeUnpin for JsonReporter
impl UnwindSafe for JsonReporter
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