Struct iroh_blobs::metrics::Metrics
source · pub struct Metrics {
pub download_bytes_total: Counter,
pub download_time_total: Counter,
pub downloads_success: Counter,
pub downloads_error: Counter,
pub downloads_notfound: Counter,
pub downloader_tick_main: Counter,
pub downloader_tick_connection_ready: Counter,
pub downloader_tick_message_received: Counter,
pub downloader_tick_transfer_completed: Counter,
pub downloader_tick_transfer_failed: Counter,
pub downloader_tick_retry_node: Counter,
pub downloader_tick_goodbye_node: Counter,
}
Expand description
Enum of metrics for the module
Fields§
§download_bytes_total: Counter
§download_time_total: Counter
§downloads_success: Counter
§downloads_error: Counter
§downloads_notfound: Counter
§downloader_tick_main: Counter
§downloader_tick_connection_ready: Counter
§downloader_tick_message_received: Counter
§downloader_tick_transfer_completed: Counter
§downloader_tick_transfer_failed: Counter
§downloader_tick_retry_node: Counter
§downloader_tick_goodbye_node: Counter
Trait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
Access to this metrics group to record a metric.
Only records if this metric is registered in the global registry.
§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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