pub trait GetResponse: Debug {
// Required method
fn get_response(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<Message<Bytes>, Error>> + Send + Sync + '_>>;
}
Expand description
Trait for getting the result of a DNS query.
In the future, the return type of get_response should become an associated type. However, too many uses of ‘dyn GetResponse’ currently prevent that.