[][src]Struct dipstick::Marker

pub struct Marker { /* fields omitted */ }

A monotonic counter metric. Since value is only ever increased by one, no value parameter is provided, preventing programming errors.

Methods

impl Marker[src]

pub fn mark(&self)[src]

Record a single event occurence.

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 Marker[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<InputMetric> for Marker[src]

impl Debug for Marker[src]

impl Deref for Marker[src]

type Target = InputMetric

The resulting type after dereferencing.

Auto Trait Implementations

impl Sync for Marker

impl Unpin for Marker

impl Send for Marker

impl !UnwindSafe for Marker

impl !RefUnwindSafe for Marker

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T