Enum dipstick::core::ScopeCmd [] [src]

pub enum ScopeCmd<'a, M: 'a> {
    Write(&'a M, Value),
    Flush,
}

An method dispatching command enum to manipulate metric scopes. Replaces a potential Writer trait that would have methods write and flush. Using a command pattern allows buffering, async queuing and inline definition of writers.

Variants

Write the value for the metric. Takes a reference to minimize overhead in single-threaded scenarios.

Flush the scope buffer, if applicable.

Trait Implementations

Auto Trait Implementations

impl<'a, M> Send for ScopeCmd<'a, M> where
    M: Sync

impl<'a, M> Sync for ScopeCmd<'a, M> where
    M: Sync