pub struct SimpleRegistry { /* private fields */ }Implementations§
Source§impl SimpleRegistry
impl SimpleRegistry
pub fn new() -> Self
pub fn get_counter(&self, name: &str, labels: Vec<MetricLabel>) -> Arc<Counter>
pub fn get_gauge(&self, name: &str, labels: Vec<MetricLabel>) -> Arc<Gauge>
pub fn get_histogram( &self, name: &str, labels: Vec<MetricLabel>, buckets: Vec<f64>, ) -> Arc<Histogram>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SimpleRegistry
impl RefUnwindSafe for SimpleRegistry
impl Send for SimpleRegistry
impl Sync for SimpleRegistry
impl Unpin for SimpleRegistry
impl UnwindSafe for SimpleRegistry
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