Struct electrscash::metrics::Metrics
source · [−]pub struct Metrics { /* private fields */ }
Implementations
sourceimpl Metrics
impl Metrics
pub fn new(addr: SocketAddr) -> Metrics
pub fn counter_int(&self, opts: Opts) -> IntCounter
pub fn counter_int_vec(&self, opts: Opts, labels: &[&str]) -> IntCounterVec
pub fn gauge_float(&self, opts: Opts) -> Gauge
pub fn gauge_float_vec(&self, opts: Opts, labels: &[&str]) -> GaugeVec
pub fn gauge_int_vec(&self, opts: Opts, labels: &[&str]) -> IntGaugeVec
pub fn gauge_int(&self, opts: Opts) -> IntGauge
pub fn histogram(&self, opts: HistogramOpts) -> Histogram
pub fn histogram_vec(
&self,
opts: HistogramOpts,
labels: &[&str]
) -> HistogramVec
pub fn start(&self)
Auto Trait Implementations
impl !RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl !UnwindSafe for Metrics
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self