[−][src]Struct dipstick::Gauge
A gauge that sends values to the metrics backend
Implementations
impl Gauge[src]
pub fn value<V: ToPrimitive>(&self, value: V)[src]
Record a value point for this gauge.
Methods from Deref<Target = InputMetric>
pub fn write(&self, value: MetricValue, labels: Labels)[src]
Collect a new value for this metric.
pub fn metric_id(&self) -> &MetricId[src]
Returns the unique identifier of this metric.
Trait Implementations
impl Clone for Gauge[src]
impl Debug for Gauge[src]
impl Deref for Gauge[src]
type Target = InputMetric
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl From<InputMetric> for Gauge[src]
fn from(metric: InputMetric) -> Gauge[src]
Auto Trait Implementations
impl !RefUnwindSafe for Gauge
impl Send for Gauge
impl Sync for Gauge
impl Unpin for Gauge
impl !UnwindSafe for Gauge
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,