pub struct ConsoleReporter { /* private fields */ }Expand description
Console reporter that prints metrics to stdout.
Implementations§
Source§impl ConsoleReporter
impl ConsoleReporter
Sourcepub fn with_format(format: ReportFormat) -> Self
pub fn with_format(format: ReportFormat) -> Self
Create a console reporter with specified format.
Trait Implementations§
Source§impl Default for ConsoleReporter
impl Default for ConsoleReporter
Source§impl MetricsReporter for ConsoleReporter
impl MetricsReporter for ConsoleReporter
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 ConsoleReporter
impl RefUnwindSafe for ConsoleReporter
impl Send for ConsoleReporter
impl Sync for ConsoleReporter
impl Unpin for ConsoleReporter
impl UnsafeUnpin for ConsoleReporter
impl UnwindSafe for ConsoleReporter
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