Trait Executor

Source
pub trait Executor: ExecutorClone {
    // Required method
    fn spawn(&self, future: Pin<Box<dyn Future<Output = ()> + Send>>);
}

Required Methods§

Source

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

Run the given future in the background until it ends.

Trait Implementations§

Source§

impl Clone for Box<dyn Executor + Send + Sync>

Source§

fn clone(&self) -> Box<dyn Executor + Send + Sync>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Implementors§