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

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>[src]

The associated DNS RequestSender type.

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

Response type of the RequestSender

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

A future that resolves to the RequestSender

Loading content...

Required methods

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

Construct a new stream for use in the Client

Loading content...

Implementors

Loading content...