pub struct GenericGauge<P: Atomic>(/* private fields */);Implementations§
Source§impl<P: Atomic> GenericGauge<P>
impl<P: Atomic> GenericGauge<P>
pub fn new_some(inner: GenericGauge<P>) -> Self
pub fn new_none() -> Self
pub fn new(name: &str, help: &str) -> Result<Self>
pub fn with_opts(opts: Opts) -> Result<Self>
pub fn get(&self) -> P::T
pub fn set(&self, v: P::T)
pub fn inc(&self)
pub fn dec(&self)
pub fn add(&self, v: P::T)
pub fn sub(&self, v: P::T)
Trait Implementations§
Source§impl<P: Atomic> Clone for GenericGauge<P>
impl<P: Atomic> Clone for GenericGauge<P>
Source§impl<P: Atomic> Collector for GenericGauge<P>
impl<P: Atomic> Collector for GenericGauge<P>
Auto Trait Implementations§
impl<P> Freeze for GenericGauge<P>
impl<P> RefUnwindSafe for GenericGauge<P>where
P: RefUnwindSafe,
impl<P> Send for GenericGauge<P>
impl<P> Sync for GenericGauge<P>
impl<P> Unpin for GenericGauge<P>
impl<P> UnsafeUnpin for GenericGauge<P>
impl<P> UnwindSafe for GenericGauge<P>where
P: RefUnwindSafe,
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