Struct overclock::core::PROMETHEUS_REGISTRY
source · [−]pub struct PROMETHEUS_REGISTRY { /* private fields */ }
Expand description
PROMETHEUS REGISTRY, used by overclock to register metrics
Methods from Deref<Target = Registry>
sourcepub fn register(
&self,
c: Box<dyn Collector + 'static, Global>
) -> Result<(), Error>
pub fn register(
&self,
c: Box<dyn Collector + 'static, Global>
) -> Result<(), Error>
register
registers a new Collector
to be included in metrics
collection. It returns an error if the descriptors provided by the
Collector
are invalid or if they — in combination with descriptors of
already registered Collectors — do not fulfill the consistency and
uniqueness criteria described in the documentation of Desc
.
If the provided Collector
is equal to a Collector
already registered
(which includes the case of re-registering the same Collector
), the
AlreadyReg error returns.
Trait Implementations
sourceimpl Deref for PROMETHEUS_REGISTRY
impl Deref for PROMETHEUS_REGISTRY
impl LazyStatic for PROMETHEUS_REGISTRY
Auto Trait Implementations
impl RefUnwindSafe for PROMETHEUS_REGISTRY
impl Send for PROMETHEUS_REGISTRY
impl Sync for PROMETHEUS_REGISTRY
impl Unpin for PROMETHEUS_REGISTRY
impl UnwindSafe for PROMETHEUS_REGISTRY
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more