pub struct HyperMetricsService<S> { /* private fields */ }Available on crate features
http and macros only.Expand description
The Tower service designed for metering hyper stack
Current provided metrics:
- Timer all requests:
metric_name.all - Timers by request method: eg,
metric_name.GET - Meters by response status code family: eg,
metric_name.2xx - Inflight request counter:
metric_name.inflight - Meter for unhandled error:
metric_name.error
Trait Implementations§
Source§impl<S: Clone> Clone for HyperMetricsService<S>
impl<S: Clone> Clone for HyperMetricsService<S>
Source§fn clone(&self) -> HyperMetricsService<S>
fn clone(&self) -> HyperMetricsService<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for HyperMetricsService<S>
impl<S: Debug> Debug for HyperMetricsService<S>
Source§impl<S, RespBody> Service<Request<Body>> for HyperMetricsService<S>
impl<S, RespBody> Service<Request<Body>> for HyperMetricsService<S>
Source§type Future = Pin<Box<dyn Future<Output = Result<<HyperMetricsService<S> as Service<Request<Body>>>::Response, <HyperMetricsService<S> as Service<Request<Body>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<HyperMetricsService<S> as Service<Request<Body>>>::Response, <HyperMetricsService<S> as Service<Request<Body>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for HyperMetricsService<S>where
S: Freeze,
impl<S> !RefUnwindSafe for HyperMetricsService<S>
impl<S> Send for HyperMetricsService<S>where
S: Send,
impl<S> Sync for HyperMetricsService<S>where
S: Sync,
impl<S> Unpin for HyperMetricsService<S>where
S: Unpin,
impl<S> UnsafeUnpin for HyperMetricsService<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for HyperMetricsService<S>
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