Ticker

Trait Ticker 

Source
pub trait Ticker {
    // Required method
    fn next(&self) -> impl Future<Output = bool> + Send + Sync;
}

Required Methods§

Source

fn next(&self) -> impl Future<Output = bool> + Send + Sync

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.

Implementations on Foreign Types§

Source§

impl Ticker for Option<Duration>

Source§

async fn next(&self) -> bool

Source§

impl Ticker for Duration

Source§

async fn next(&self) -> bool

Implementors§