pub struct HttpMetrics;Expand description
HttpMetrics Volatile counters for HTTP outcalls keyed by method + URL. The label is a url override
Implementations§
Source§impl HttpMetrics
impl HttpMetrics
pub fn increment(method: HttpMethod, url: &str)
pub fn increment_with_label(method: HttpMethod, url: &str, label: Option<&str>)
pub fn snapshot() -> HttpMetricsSnapshot
Auto Trait Implementations§
impl Freeze for HttpMetrics
impl RefUnwindSafe for HttpMetrics
impl Send for HttpMetrics
impl Sync for HttpMetrics
impl Unpin for HttpMetrics
impl UnwindSafe for HttpMetrics
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