Trait discv5::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 copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more

Implementors§