[][src]Trait trust_dns_client::client::client_connection::ClientConnection

pub trait ClientConnection: 'static + Sized + Send + Sync + Unpin {
    type Sender: DnsRequestSender<DnsResponseFuture = Self::Response>;
    type Response: Future<Output = Result<DnsResponse, ProtoError>> + 'static + Send + Unpin;
    type SenderFuture: Future<Output = Result<Self::Sender, ProtoError>> + 'static + Send + Unpin;
    fn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture;
}

Trait for client connections

Associated Types

type Sender: DnsRequestSender<DnsResponseFuture = Self::Response>

The associated DNS RequestSender type.

type Response: Future<Output = Result<DnsResponse, ProtoError>> + 'static + Send + Unpin

Response type of the RequestSender

type SenderFuture: Future<Output = Result<Self::Sender, ProtoError>> + 'static + Send + Unpin

A future that resolves to the RequestSender

Loading content...

Required methods

fn new_stream(&self, signer: Option<Arc<Signer>>) -> Self::SenderFuture

Construct a new stream for use in the Client

Loading content...

Implementors

Loading content...