Trait hickory_resolver::name_server::Spawn

source ·
pub trait Spawn {
    // Required method
    fn spawn_bg<F>(&mut self, future: F)
       where F: Future<Output = Result<(), ProtoError>> + Send + 'static;
}
Expand description

A type defines the Handle which can spawn future.

Required Methods§

source

fn spawn_bg<F>(&mut self, future: F)
where F: Future<Output = Result<(), ProtoError>> + Send + 'static,

Spawn a future in the background

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Spawn for TokioHandle

Available on crate feature tokio-runtime only.