pub enum RegistryAdapter {
PrometheusClient(Registry),
Substrate(Registry),
Both(Registry, Registry),
}
Expand description
Metrics registry adapter for prometheus-client and Substrate frameworks. It specifies which metrics registry or registries are in use.
Variants§
PrometheusClient(Registry)
Uses only the prometheus-client metrics registry.
Substrate(Registry)
Uses only the Substrate metrics registry.
Both(Registry, Registry)
We use both Substrate and prometheus-client metrics registries.
Auto Trait Implementations§
impl Freeze for RegistryAdapter
impl !RefUnwindSafe for RegistryAdapter
impl Send for RegistryAdapter
impl Sync for RegistryAdapter
impl Unpin for RegistryAdapter
impl !UnwindSafe for RegistryAdapter
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