domain::net::client::request

Trait GetResponseMulti

source
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§

source

fn get_response( &mut self, ) -> Pin<Box<dyn Future<Output = Result<Option<Message<Bytes>>, Error>> + Send + Sync + '_>>

Get the result of a DNS request.

This function is intended to be cancel safe.

Implementors§