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

Trait for client connections

Associated Types

The associated DNS RequestSender type.

A future that resolves to the RequestSender

Required methods

Construct a new stream for use in the Client

Implementors