[−][src]Struct metrics_runtime::exporters::HttpExporter  
Exports metrics over HTTP.
Methods
impl<C, B> HttpExporter<C, B> where
    B: Builder + Send + Sync + 'static,
    C: Observe + Send + Sync + 'static,
    <B as Builder>::Output: Drain<String>,
    <B as Builder>::Output: Observer, [src]
B: Builder + Send + Sync + 'static,
C: Observe + Send + Sync + 'static,
<B as Builder>::Output: Drain<String>,
<B as Builder>::Output: Observer,
pub fn new(controller: C, builder: B, address: SocketAddr) -> HttpExporter<C, B>[src]
Creates a new HttpExporter that listens on the given address.
Observers expose their output by being converted into strings.
pub async fn async_run(self) -> Result<(), Error>[src]
Starts an HTTP server on the address the exporter was originally configured with,
responding to any request with the output of the configured observer.
Auto Trait Implementations
impl<C, B> RefUnwindSafe for HttpExporter<C, B> where
    B: RefUnwindSafe,
    C: RefUnwindSafe, 
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, B> Send for HttpExporter<C, B> where
    B: Send,
    C: Send, 
B: Send,
C: Send,
impl<C, B> Sync for HttpExporter<C, B> where
    B: Sync,
    C: Sync, 
B: Sync,
C: Sync,
impl<C, B> Unpin for HttpExporter<C, B> where
    B: Unpin,
    C: Unpin, 
B: Unpin,
C: Unpin,
impl<C, B> UnwindSafe for HttpExporter<C, B> where
    B: UnwindSafe,
    C: UnwindSafe, 
B: UnwindSafe,
C: UnwindSafe,
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,
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> Same<T> for T
type Output = T
Should always be Self
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>,