pub struct PrometheusMetrics {
pub registry: Registry,
/* private fields */
}Fields§
§registry: RegistryTrait Implementations§
Source§impl Clone for PrometheusMetrics
impl Clone for PrometheusMetrics
Source§fn clone(&self) -> PrometheusMetrics
fn clone(&self) -> PrometheusMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrometheusMetrics
impl Debug for PrometheusMetrics
Source§impl<S, B> Transform<S, ServiceRequest> for PrometheusMetricswhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
B: MessageBody + 'static,
B::Error: Into<Box<dyn StdError + 'static>>,
impl<S, B> Transform<S, ServiceRequest> for PrometheusMetricswhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
B: MessageBody + 'static,
B::Error: Into<Box<dyn StdError + 'static>>,
Source§type Response = ServiceResponse<StreamMetrics<BoxBody>>
type Response = ServiceResponse<StreamMetrics<BoxBody>>
Responses produced by the service.
Source§type Transform = PrometheusMetricsMiddleware<S>
type Transform = PrometheusMetricsMiddleware<S>
The
TransformService value created by this factorySource§type Future = Ready<Result<<PrometheusMetrics as Transform<S, ServiceRequest>>::Transform, <PrometheusMetrics as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<PrometheusMetrics as Transform<S, ServiceRequest>>::Transform, <PrometheusMetrics as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl !Freeze for PrometheusMetrics
impl !RefUnwindSafe for PrometheusMetrics
impl Send for PrometheusMetrics
impl Sync for PrometheusMetrics
impl Unpin for PrometheusMetrics
impl !UnwindSafe for PrometheusMetrics
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