Trait trust_dns::client::ClientConnection
source · pub trait ClientConnection: 'static + Sized + Send {
type Sender: DnsRequestSender<DnsResponseFuture = Self::Response>;
type Response: Future<Item = DnsResponse, Error = ProtoError> + 'static + Send;
type SenderFuture: Future<Item = Self::Sender, Error = ProtoError> + 'static + Send;
fn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture;
}
Expand description
Trait for client connections
Required Associated Types
sourcetype Sender: DnsRequestSender<DnsResponseFuture = Self::Response>
type Sender: DnsRequestSender<DnsResponseFuture = Self::Response>
The associated DNS RequestSender type.
sourcetype Response: Future<Item = DnsResponse, Error = ProtoError> + 'static + Send
type Response: Future<Item = DnsResponse, Error = ProtoError> + 'static + Send
Response type of the RequestSender
sourcetype SenderFuture: Future<Item = Self::Sender, Error = ProtoError> + 'static + Send
type SenderFuture: Future<Item = Self::Sender, Error = ProtoError> + 'static + Send
A future that resolves to the RequestSender
Required Methods
sourcefn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture
fn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture
Construct a new stream for use in the Client