Struct asyncplify::schedulers::CurrentThread [] [src]

pub struct CurrentThread;

Schedule a func to be executed on the current thread.

Methods

impl CurrentThread

fn current() -> CurrentThread

fn running(&self) -> bool

Trait Implementations

impl Scheduler for CurrentThread

fn schedule<F>(&self, func: F, delay: Duration) where F: FnOnce() + 'static

Derived Implementations

impl Clone for CurrentThread

fn clone(&self) -> CurrentThread

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for CurrentThread