pub struct MetricsEndpoint { /* private fields */ }Expand description
Serves Prometheus text metrics from a shared HttpMetrics instance.
Implementations§
Source§impl MetricsEndpoint
impl MetricsEndpoint
pub fn new(metrics: Arc<HttpMetrics>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsEndpoint
impl RefUnwindSafe for MetricsEndpoint
impl Send for MetricsEndpoint
impl Sync for MetricsEndpoint
impl Unpin for MetricsEndpoint
impl UnsafeUnpin for MetricsEndpoint
impl UnwindSafe for MetricsEndpoint
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