[][src]Trait dipstick::CachedInput

pub trait CachedInput: Input + Send + Sync + 'static + Sized {
    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.

Provided methods

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.

Loading content...

Implementors

impl CachedInput for InputQueue[src]

impl CachedInput for Log[src]

impl CachedInput for OutputQueue[src]

Loading content...