Struct biometrics::Collector
source · pub struct Collector { /* private fields */ }
Expand description
Collect and register sensors of all types. One registry per sensor type.
Implementations§
source§impl Collector
impl Collector
sourcepub fn new() -> Self
pub fn new() -> Self
Get a new Collector. The collector will use the global registries and emit to the COLLECTOR_* counters for easy monitoring.
sourcepub fn register_counter(&self, counter: &'static Counter)
pub fn register_counter(&self, counter: &'static Counter)
Register counter
with the Collector.
sourcepub fn register_gauge(&self, gauge: &'static Gauge)
pub fn register_gauge(&self, gauge: &'static Gauge)
Register gauge
with the Collector.
sourcepub fn register_moments(&self, moments: &'static Moments)
pub fn register_moments(&self, moments: &'static Moments)
Register moments
with the Collector.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Collector
impl Send for Collector
impl Sync for Collector
impl Unpin for Collector
impl UnwindSafe for Collector
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