Struct prometrics::Registry
[−]
[src]
pub struct Registry { /* fields omitted */ }
Collector registry.
Methods
impl Registry
[src]
fn register<C>(&self, collector: C) -> Result<()> where
C: Collect + Send + 'static,
[src]
C: Collect + Send + 'static,
Registers a collector.
If collector.collect()
returns None
, it will be deregistered from this.