pub struct MetricsHandler;
Expand description
A handler for exposing prometheus metrics.
Trait Implementations§
Source§impl Debug for MetricsHandler
impl Debug for MetricsHandler
Source§impl HandleRequest for MetricsHandler
impl HandleRequest for MetricsHandler
Source§type Decoder = BodyDecoder<NullDecoder>
type Decoder = BodyDecoder<NullDecoder>
Request body decoder.
Source§type Encoder = BodyEncoder<Utf8Encoder>
type Encoder = BodyEncoder<Utf8Encoder>
Response body encoder.
Source§type Reply = Box<dyn Future<Item = Res<<MetricsHandler as HandleRequest>::ResBody>, Error = Never> + Send>
type Reply = Box<dyn Future<Item = Res<<MetricsHandler as HandleRequest>::ResBody>, Error = Never> + Send>
Future
that represents reply to a request.Auto Trait Implementations§
impl Freeze for MetricsHandler
impl RefUnwindSafe for MetricsHandler
impl Send for MetricsHandler
impl Sync for MetricsHandler
impl Unpin for MetricsHandler
impl UnwindSafe for MetricsHandler
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