Struct tic::HttpReporter [−][src]
pub struct HttpReporter<T> { /* fields omitted */ }
an HTTP-based endpoint for viewing all registered metrics on a Receiver
Methods
impl<T: Eq + Hash + Send + Clone + Display> HttpReporter<T>
[src]
impl<T: Eq + Hash + Send + Clone + Display> HttpReporter<T>
pub fn new<U: ToSocketAddrs>(
receiver: &Receiver<T>,
listen: U
) -> HttpReporter<T>
[src]
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
pub fn run(&mut self)
[src]
pub fn run(&mut self)
runs the HTTP server loop, this will block the calling thread until the process exists
you should run this via thread::spawn
Auto Trait Implementations
impl<T> Send for HttpReporter<T> where
T: Send,
impl<T> Send for HttpReporter<T> where
T: Send,
impl<T> Sync for HttpReporter<T> where
T: Send,
impl<T> Sync for HttpReporter<T> where
T: Send,