Struct dipstick::InputQueue
source · pub struct InputQueue { /* private fields */ }
Expand description
Wrap new scopes with an asynchronous metric write & flush dispatcher.
Implementations§
Trait Implementations§
source§impl CachedInput for InputQueue
impl CachedInput for InputQueue
source§fn cached(self, max_size: usize) -> InputCache
fn cached(self, max_size: usize) -> InputCache
Wrap an input with a metric definition cache.
This can provide performance benefits for metrics that are dynamically defined at runtime on each access.
Caching is useless if all metrics are statically declared
or instantiated programmatically in advance and referenced by a long living variable.
source§impl Clone for InputQueue
impl Clone for InputQueue
source§fn clone(&self) -> InputQueue
fn clone(&self) -> InputQueue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Input for InputQueue
impl Input for InputQueue
source§impl WithAttributes for InputQueue
impl WithAttributes for InputQueue
source§fn get_attributes(&self) -> &Attributes
fn get_attributes(&self) -> &Attributes
Return attributes of component.
source§fn mut_attributes(&mut self) -> &mut Attributes
fn mut_attributes(&mut self) -> &mut Attributes
Return attributes of component for mutation.
source§fn with_attributes<F: Fn(&mut Attributes)>(&self, edit: F) -> Self
fn with_attributes<F: Fn(&mut Attributes)>(&self, edit: F) -> Self
Clone the component and mutate its attributes at once.