iroh_metrics::service

Type Alias RwLockRegistry

Source
pub type RwLockRegistry = Arc<RwLock<Registry>>;
Available on crate feature service only.
Expand description

A cloneable Registry in a read-write lock.

Useful if you need mutable access to a registry, while also using the services defined in crate::service.

Aliased Type§

struct RwLockRegistry { /* private fields */ }

Trait Implementations§

Source§

impl MetricsSource for RwLockRegistry

Source§

fn encode_openmetrics(&self) -> Result<String, Error>

Encodes all metrics into a string in the Open Metrics text format.