Trait fibers::Executor[][src]

pub trait Executor: Sized {
    type Handle: Spawn + Clone + Send + 'static;
    fn handle(&self) -> Self::Handle;
fn run_once(&mut self) -> Result<()>; fn run_fiber<T, E>(
        &mut self,
        monitor: Monitor<T, E>
    ) -> Result<Result<T, MonitorError<E>>> { ... }
fn run_future<F: Future>(
        &mut self,
        future: F
    ) -> Result<Result<F::Item, F::Error>> { ... }
fn run(self) -> Result<()> { ... } }

The Executor trait allows for spawning and executing fibers.

Associated Types

The handle type of the executor.

Required Methods

Returns the handle of the executor.

Runs one one unit of works.

Provided Methods

Runs until the monitored fiber exits.

Runs until the future is ready.

Runs infinitely until an error happens.

Implementors