[−][src]Struct prometheus_exporter::Exporter
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
Auto Trait Implementations
impl !RefUnwindSafe for Exporter
[src]
impl Send for Exporter
[src]
impl !Sync for Exporter
[src]
impl Unpin for Exporter
[src]
impl !UnwindSafe for Exporter
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,