Trait ManagerInterval

Source
pub trait ManagerInterval {
    type Interval: Send;
    type Tick: Send;

    // Required methods
    fn interval(dur: Duration) -> Self::Interval;
    fn tick(tick: &mut Self::Interval) -> ManagerFuture<'_, Self::Tick>;
}
Expand description

helper trait as we have different interval tick api in different runtime

Required Associated Types§

Required Methods§

Source

fn interval(dur: Duration) -> Self::Interval

Source

fn tick(tick: &mut Self::Interval) -> ManagerFuture<'_, Self::Tick>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§