[][src]Struct fibers_http_server::metrics::WithMetrics

pub struct WithMetrics<H> { /* fields omitted */ }

A handler for granting the metrics collection functionality to the inner handler H.

Methods

impl<H: HandleRequest> WithMetrics<H>[src]

pub fn new(inner: H) -> Self[src]

Makes a new WithMetrics instance.

pub fn with_metrics(inner: H, metric_builder: MetricBuilder) -> Self[src]

Makes a new WithMetrics instance with the given MetricBuilder.

pub fn metrics(&self) -> &HandlerMetrics[src]

Returns the metrics of the handler.

Trait Implementations

impl<H: HandleRequest> HandleRequest for WithMetrics<H>[src]

type ReqBody = H::ReqBody

The type of the request bodies.

type ResBody = H::ResBody

The type of the response bodies.

type Decoder = H::Decoder

Request body decoder.

type Encoder = H::Encoder

Response body encoder.

type Reply = Time<H>

Future that represents reply to a request.

impl<H: Debug> Debug for WithMetrics<H>[src]

Auto Trait Implementations

impl<H> Unpin for WithMetrics<H> where
    H: Unpin

impl<H> Send for WithMetrics<H> where
    H: Send

impl<H> Sync for WithMetrics<H> where
    H: Sync

impl<H> RefUnwindSafe for WithMetrics<H> where
    H: RefUnwindSafe

impl<H> UnwindSafe for WithMetrics<H> where
    H: UnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]