[][src]Trait trust_dns_proto::Executor

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

Generic executor.

Required methods

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

Implementors

Loading content...