Trait domain::net::client::request::SendRequestMulti

source ·
pub trait SendRequestMulti<CR> {
    // Required method
    fn send_request(
        &self,
        request_msg: CR,
    ) -> Box<dyn GetResponseMulti + 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§

source

fn send_request( &self, request_msg: CR, ) -> Box<dyn GetResponseMulti + Send + Sync>

Request function that takes a ComposeRequestMulti type.

Implementations on Foreign Types§

source§

impl<T: SendRequestMulti<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequestMulti<RequestMessage<Octs>> for Box<T>

source§

fn send_request( &self, request_msg: RequestMessage<Octs>, ) -> Box<dyn GetResponseMulti + Send + Sync>

Implementors§

source§

impl<Req, ReqMulti> SendRequestMulti<ReqMulti> for Connection<Req, ReqMulti>
where Req: ComposeRequest + Debug + Send + Sync + 'static, ReqMulti: ComposeRequestMulti + 'static,