[][src]Struct actix_web_opentelemetry::RequestMetricsMiddleware

pub struct RequestMetricsMiddleware<S, M, R, F> where
    M: Meter,
    M::I64Counter: Clone,
    M::F64Measure: Clone,
    R: RouteFormatter,
    F: Fn(&ServiceRequest) -> bool + Send + Clone
{ /* fields omitted */ }

Request metrics middleware

Trait Implementations

impl<S, B, M, R, F> Service for RequestMetricsMiddleware<S, M, R, F> where
    S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
    S::Future: 'static,
    B: 'static,
    M: Meter + 'static,
    M::I64Counter: Clone,
    M::F64Measure: Clone,
    R: RouteFormatter + 'static,
    F: Fn(&ServiceRequest) -> bool + Send + Clone + 'static, 
[src]

type Request = ServiceRequest

Requests handled by the service.

type Response = ServiceResponse<B>

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>

The future response value.

Auto Trait Implementations

impl<S, M, R, F> RefUnwindSafe for RequestMetricsMiddleware<S, M, R, F> where
    F: RefUnwindSafe,
    M: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe,
    <M as Meter>::F64Measure: RefUnwindSafe,
    <M as Meter>::I64Counter: RefUnwindSafe

impl<S, M, R, F> Send for RequestMetricsMiddleware<S, M, R, F> where
    F: Sync,
    M: Send + Sync,
    R: Send + Sync,
    S: Send,
    <M as Meter>::F64Measure: Send + Sync,
    <M as Meter>::I64Counter: Send + Sync

impl<S, M, R, F> Sync for RequestMetricsMiddleware<S, M, R, F> where
    F: Sync,
    M: Send + Sync,
    R: Send + Sync,
    S: Sync,
    <M as Meter>::F64Measure: Send + Sync,
    <M as Meter>::I64Counter: Send + Sync

impl<S, M, R, F> Unpin for RequestMetricsMiddleware<S, M, R, F> where
    S: Unpin

impl<S, M, R, F> UnwindSafe for RequestMetricsMiddleware<S, M, R, F> where
    F: RefUnwindSafe,
    M: RefUnwindSafe,
    R: RefUnwindSafe,
    S: UnwindSafe,
    <M as Meter>::F64Measure: RefUnwindSafe,
    <M as Meter>::I64Counter: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,