[][src]Trait trust_dns_proto::Executor

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

Generic executor.

Required methods

fn new() -> Self

Create the implementor itself.

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

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...