[][src]Trait mobc::runtime::Executor

pub trait Executor: Send + Sync + 'static + Clone {
    fn spawn(&mut self, future: Pin<Box<dyn Future<Output = ()> + Send>>);
}

A value that executes futures. see tokio::Executor

Required methods

fn spawn(&mut self, future: Pin<Box<dyn Future<Output = ()> + Send>>)

Spawns a future object to run on this executor.

future is passed to the executor, which will begin running it. The future may run on the current thread or another thread at the discretion of the Executor implementation.

Loading content...

Implementors

impl Executor for DefaultExecutor[src]

impl Executor for Handle[src]

Loading content...