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(&'a M, Value)
Write the value for the metric. Takes a reference to minimize overhead in single-threaded scenarios.
Flush
Flush the scope buffer, if applicable.