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
type Sender: DnsRequestSender
type Sender: DnsRequestSender
The associated DNS RequestSender type.
type SenderFuture: Future<Output = Result<Self::Sender, ProtoError>> + 'static + Send + Unpin
type SenderFuture: Future<Output = Result<Self::Sender, ProtoError>> + 'static + Send + Unpin
A future that resolves to the RequestSender
Required methods
fn 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
Implementors
sourceimpl ClientConnection for MdnsClientConnection
This is supported on crate feature mdns
only.
impl ClientConnection for MdnsClientConnection
This is supported on crate feature
mdns
only.