pub struct HttpReporter<T> { /* private fields */ }
Expand description
an HTTP-based endpoint for viewing all registered metrics on a Receiver
Implementations§
Source§impl<T: Eq + Hash + Send + Clone + Display> HttpReporter<T>
impl<T: Eq + Hash + Send + Clone + Display> HttpReporter<T>
Sourcepub fn new<U: ToSocketAddrs>(
receiver: &Receiver<T>,
listen: U,
) -> HttpReporter<T>
pub fn new<U: ToSocketAddrs>( receiver: &Receiver<T>, listen: U, ) -> HttpReporter<T>
creates a new HttpReporter
from the given Receiver
, listening on the given address
Auto Trait Implementations§
impl<T> Freeze for HttpReporter<T>
impl<T> !RefUnwindSafe for HttpReporter<T>
impl<T> Send for HttpReporter<T>where
T: Send,
impl<T> Sync for HttpReporter<T>where
T: Send,
impl<T> Unpin for HttpReporter<T>
impl<T> !UnwindSafe for HttpReporter<T>
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