[][src]Struct prometheus_exporter::Exporter

pub struct Exporter { /* fields omitted */ }

Helper to export prometheus metrics via http.

Implementations

impl Exporter[src]

#[must_use]pub fn builder(binding: SocketAddr) -> Builder[src]

Return new builder which will create a exporter once built.

#[must_use = "not using the guard will result in the exporter returning the prometheus data \ immediately over http"]pub fn wait_request(&self) -> MutexGuard<'_, ()>[src]

Wait until a new request comes in. Returns a mutex guard to make the http server wait until the metrics have been updated.

#[must_use = "not using the guard will result in the exporter returning the prometheus data \ immediately over http"]pub fn wait_duration(&self, duration: Duration) -> MutexGuard<'_, ()>[src]

Wait for given duration. Returns a mutex guard to make the http server wait until the metrics have been updated.

Trait Implementations

impl Debug for Exporter[src]

Auto Trait Implementations

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.