Trait dipstick::ScheduleFlush

source ·
pub trait ScheduleFlush {
    // Required method
    fn flush_every(&self, period: Duration) -> CancelHandle;
}
Expand description

Enable background periodical publication of metrics

Required Methods§

source

fn flush_every(&self, period: Duration) -> CancelHandle

Flush this scope at regular intervals.

Implementors§

source§

impl<T: InputScope + Send + Sync + Clone + 'static> ScheduleFlush for T