pub struct PrometheusMetricsHandler { /* private fields */ }Available on crate features
metrics-prometheus and metrics only.Expand description
Prometheus request metrics service
Implementations
sourceimpl PrometheusMetricsHandler
impl PrometheusMetricsHandler
sourcepub fn new(exporter: PrometheusExporter) -> Self
pub fn new(exporter: PrometheusExporter) -> Self
Build a route to serve Prometheus metrics
Trait Implementations
sourceimpl Clone for PrometheusMetricsHandler
impl Clone for PrometheusMetricsHandler
sourcefn clone(&self) -> PrometheusMetricsHandler
fn clone(&self) -> PrometheusMetricsHandler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PrometheusMetricsHandler
impl Debug for PrometheusMetricsHandler
sourceimpl Handler<HttpRequest> for PrometheusMetricsHandler
impl Handler<HttpRequest> for PrometheusMetricsHandler
type Output = Result<HttpResponse<String>, Error>
type Future = Pin<Box<dyn Future<Output = <PrometheusMetricsHandler as Handler<HttpRequest>>::Output> + 'static, Global>>
fn call(&self, _req: HttpRequest) -> Self::Future
Auto Trait Implementations
impl !RefUnwindSafe for PrometheusMetricsHandler
impl Send for PrometheusMetricsHandler
impl Sync for PrometheusMetricsHandler
impl Unpin for PrometheusMetricsHandler
impl !UnwindSafe for PrometheusMetricsHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more