[−][src]Struct fibers_http_server::metrics::MetricsHandler
A handler for exposing prometheus metrics.
Trait Implementations
impl HandleRequest for MetricsHandler
[src]
const METHOD: &'static str
[src]
const PATH: &'static str
[src]
type ReqBody = ()
The type of the request bodies.
type ResBody = String
The type of the response bodies.
type Decoder = BodyDecoder<NullDecoder>
Request body decoder.
type Encoder = BodyEncoder<Utf8Encoder>
Response body encoder.
type Reply = Box<dyn Future<Item = Res<Self::ResBody>, Error = Never> + Send + 'static>
Future
that represents reply to a request.
fn handle_request(&self, _req: Req<Self::ReqBody>) -> Self::Reply
[src]
fn handle_request_head(&self, req: &Req<()>) -> Option<Res<Self::ResBody>>
[src]
Handles the head part of a request. Read more
fn handle_decoding_error(
&self,
req: Req<()>,
error: &Error
) -> Option<Res<Self::ResBody>>
[src]
&self,
req: Req<()>,
error: &Error
) -> Option<Res<Self::ResBody>>
Handles an error occurred while decoding the body of a request. Read more
impl Debug for MetricsHandler
[src]
Auto Trait Implementations
impl Unpin for MetricsHandler
impl Send for MetricsHandler
impl Sync for MetricsHandler
impl RefUnwindSafe for MetricsHandler
impl UnwindSafe for MetricsHandler
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,