[][src]Struct prometheus_exporter::Builder

pub struct Builder { /* fields omitted */ }

Builder to create a new crate::Exporter.

Implementations

impl Builder[src]

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

Create a new builder with the given binding.

pub fn start(self) -> Result<Exporter, Error>[src]

Create and start new exporter based on the information from the builder.

Errors

Will return Error if the http server fails to start for any reason.

Trait Implementations

impl Debug for Builder[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.