Struct diem_metrics::OpMetrics
source · pub struct OpMetrics { /* private fields */ }
Implementations§
source§impl OpMetrics
impl OpMetrics
pub fn new<S: Into<String>>(name: S) -> OpMetrics
pub fn new_and_registered<S: Into<String>>(name: S) -> OpMetrics
pub fn gauge(&self, name: &str) -> IntGauge
pub fn peer_gauge(&self, name: &str, remote_peer_id: &str) -> IntGauge
pub fn inc(&self, op: &str)
pub fn inc_by(&self, op: &str, v: usize)
pub fn set(&self, op: &str, v: usize)
pub fn observe(&self, op: &str, v: f64)
pub fn observe_duration(&self, op: &str, d: Duration)
pub fn timer(&self, op: &str) -> HistogramTimer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpMetrics
impl !RefUnwindSafe for OpMetrics
impl Send for OpMetrics
impl Sync for OpMetrics
impl Unpin for OpMetrics
impl !UnwindSafe for OpMetrics
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