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§
Sourcefn send_request(
&self,
request_msg: CR,
) -> Box<dyn GetResponseMulti + Send + Sync>
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>
impl<T: SendRequestMulti<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequestMulti<RequestMessage<Octs>> for Box<T>
fn send_request( &self, request_msg: RequestMessage<Octs>, ) -> Box<dyn GetResponseMulti + Send + Sync>
Implementors§
impl SendRequestMulti<RequestMessageMulti<Vec<u8>>> for Client
Available on crate feature
unstable-stelline only.