[−][src]Struct metrics_exporter_log::LogExporter
Exports metrics by converting them to a textual representation and logging them.
Methods
impl<C, B> LogExporter<C, B> where
B: Builder,
B::Output: Drain<String> + Observer,
C: Observe,
[src]
B: Builder,
B::Output: Drain<String> + Observer,
C: Observe,
pub fn new(controller: C, builder: B, level: Level, interval: Duration) -> Self
[src]
Creates a new LogExporter
that logs at the configurable level.
Observers expose their output by being converted into strings.
pub fn run(&mut self)
[src]
Runs this exporter on the current thread, logging output at the interval given on construction.
pub fn turn(&mut self)
[src]
Run this exporter, logging output only once.
pub fn into_future(self) -> impl Future<Item = (), Error = ()>
[src]
Converts this exporter into a future which logs output at the intervel given on construction.
Auto Trait Implementations
impl<C, B> Sync for LogExporter<C, B> where
C: Sync,
<B as Builder>::Output: Sync,
C: Sync,
<B as Builder>::Output: Sync,
impl<C, B> Send for LogExporter<C, B> where
C: Send,
<B as Builder>::Output: Send,
C: Send,
<B as Builder>::Output: Send,
impl<C, B> Unpin for LogExporter<C, B> where
C: Unpin,
<B as Builder>::Output: Unpin,
C: Unpin,
<B as Builder>::Output: Unpin,
impl<C, B> RefUnwindSafe for LogExporter<C, B> where
C: RefUnwindSafe,
<B as Builder>::Output: RefUnwindSafe,
C: RefUnwindSafe,
<B as Builder>::Output: RefUnwindSafe,
impl<C, B> UnwindSafe for LogExporter<C, B> where
C: UnwindSafe,
<B as Builder>::Output: UnwindSafe,
C: UnwindSafe,
<B as Builder>::Output: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,