Skip to main content

SendRequestMulti

Trait SendRequestMulti 

Source
pub trait SendRequestMulti<CR> {
    // Required method
    fn send_request(
        &self,
        request_msg: CR,
    ) -> Box<dyn GetResponseMulti + Send + Sync>;
}
Available on crate features net and unstable-client-transport only.
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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 SendRequestMulti<RequestMessageMulti<Vec<u8>>> for Client

Available on crate feature unstable-stelline only.
Source§

impl<CR, Upstream, K> SendRequestMulti<CR> for domain::net::client::tsig::Connection<Upstream, K>
where CR: ComposeRequestMulti + 'static, Upstream: SendRequestMulti<RequestMessage<CR, K>> + Send + Sync + 'static, K: Clone + AsRef<Key> + Send + Sync + 'static,

Source§

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