pub struct HttpExporter<C, B> { /* private fields */ }
Expand description
Exports metrics over HTTP.
Implementations§
Source§impl<C, B> HttpExporter<C, B>
impl<C, B> HttpExporter<C, B>
Sourcepub fn new(controller: C, builder: B, address: SocketAddr) -> Self
pub fn new(controller: C, builder: B, address: SocketAddr) -> Self
Creates a new HttpExporter
that listens on the given address
.
Observers expose their output by being converted into strings.
Auto Trait Implementations§
impl<C, B> Freeze for HttpExporter<C, B>
impl<C, B> RefUnwindSafe for HttpExporter<C, B>where
C: RefUnwindSafe,
B: RefUnwindSafe,
impl<C, B> Send for HttpExporter<C, B>
impl<C, B> Sync for HttpExporter<C, B>
impl<C, B> Unpin for HttpExporter<C, B>
impl<C, B> UnwindSafe for HttpExporter<C, B>where
C: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more