pub struct Metrics {Show 19 fields
pub new_entries_local: Counter,
pub new_entries_remote: Counter,
pub new_entries_local_size: Counter,
pub new_entries_remote_size: Counter,
pub sync_via_connect_success: Counter,
pub sync_via_connect_failure: Counter,
pub sync_via_accept_success: Counter,
pub sync_via_accept_failure: Counter,
pub actor_tick_main: Counter,
pub doc_gossip_tick_main: Counter,
pub doc_gossip_tick_event: Counter,
pub doc_gossip_tick_actor: Counter,
pub doc_gossip_tick_pending_join: Counter,
pub doc_live_tick_main: Counter,
pub doc_live_tick_actor: Counter,
pub doc_live_tick_replica_event: Counter,
pub doc_live_tick_running_sync_connect: Counter,
pub doc_live_tick_running_sync_accept: Counter,
pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
Fields§
§new_entries_local: Counter
§new_entries_remote: Counter
§new_entries_local_size: Counter
§new_entries_remote_size: Counter
§sync_via_connect_success: Counter
§sync_via_connect_failure: Counter
§sync_via_accept_success: Counter
§sync_via_accept_failure: Counter
§actor_tick_main: Counter
§doc_gossip_tick_main: Counter
§doc_gossip_tick_event: Counter
§doc_gossip_tick_actor: Counter
§doc_gossip_tick_pending_join: Counter
§doc_live_tick_main: Counter
§doc_live_tick_actor: Counter
§doc_live_tick_replica_event: Counter
§doc_live_tick_running_sync_connect: Counter
§doc_live_tick_running_sync_accept: Counter
§doc_live_tick_pending_downloads: 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