pub trait GetResponseMulti: Debug {
// Required method
fn get_response(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message<Bytes>>, Error>> + Send + Sync + '_>>;
}Expand description
Trait for getting a stream of 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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".