Trait async_dispatcher::Dispatcher

source ·
pub trait Dispatcher: 'static + Send + Sync {
    // Required methods
    fn dispatch(&self, runnable: Runnable);
    fn dispatch_after(&self, duration: Duration, runnable: Runnable);
}

Required Methods§

source

fn dispatch(&self, runnable: Runnable)

source

fn dispatch_after(&self, duration: Duration, runnable: Runnable)

Implementors§