[][src]Struct libra_secure_push_metrics::MetricsPusher

#[must_use =
  "Assign the contructed pusher to a variable, \
              otherwise the worker thread is joined immediately."]pub struct MetricsPusher { /* fields omitted */ }

MetricsPusher provides a function to push a list of Metrics to a configurable pushgateway endpoint.

Implementations

impl MetricsPusher[src]

pub fn start() -> Self[src]

start starts a new thread and periodically pushes the metrics to a pushgateway endpoint

pub fn join(&mut self)[src]

Trait Implementations

impl Drop for MetricsPusher[src]

Auto Trait Implementations

impl !RefUnwindSafe for MetricsPusher

impl Send for MetricsPusher

impl !Sync for MetricsPusher

impl Unpin for MetricsPusher

impl !UnwindSafe for MetricsPusher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.