[][src]Trait tang_rs::ManagerInterval

pub trait ManagerInterval {
    type Interval: Send;
    type Tick: Send;
    fn interval(dur: Duration) -> Self::Interval;
fn tick(tick: &mut Self::Interval) -> ManagerFuture<Self::Tick>; }

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

Associated Types

type Interval: Send

type Tick: Send

Loading content...

Required methods

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

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

Loading content...

Implementors

Loading content...