Trait protoflow::Scheduler

source ·
pub trait Scheduler {
    // Required methods
    fn is_alive(&self) -> bool;
    fn sleep_for(&self, duration: Duration) -> Result<(), ()>;
    fn sleep_until(&self, instant: Duration) -> Result<(), ()>;
    fn wait_for(&self, port: &dyn Port) -> Result<(), ()>;
    fn yield_now(&self) -> Result<(), ()>;
}

Required Methods§

source

fn is_alive(&self) -> bool

source

fn sleep_for(&self, duration: Duration) -> Result<(), ()>

source

fn sleep_until(&self, instant: Duration) -> Result<(), ()>

source

fn wait_for(&self, port: &dyn Port) -> Result<(), ()>

source

fn yield_now(&self) -> Result<(), ()>

Implementors§