Trait trust_dns_proto::Executor[][src]

pub trait Executor {
    fn new() -> Self;
fn block_on<F: Future>(&mut self, future: F) -> F::Output; }

Generic executor.

Required methods

fn new() -> Self[src]

Create the implementor itself.

fn block_on<F: Future>(&mut self, future: F) -> F::Output[src]

Spawns a future object to run synchronously or asynchronously depending on the specific executor.

Loading content...

Implementations on Foreign Types

impl Executor for Runtime[src]

Loading content...

Implementors

Loading content...