pub trait SendRequest<CR> {
// Required method
fn send_request(
&self,
request_msg: CR,
) -> Box<dyn GetResponse + Send + Sync>;
}
Expand description
Trait for starting a DNS request based on a request composer.
In the future, the return type of request should become an associated type. However, the use of ‘dyn Request’ in redundant currently prevents that.
Required Methods§
sourcefn send_request(&self, request_msg: CR) -> Box<dyn GetResponse + Send + Sync>
fn send_request(&self, request_msg: CR) -> Box<dyn GetResponse + Send + Sync>
Request function that takes a ComposeRequest type.