Trait trust_dns::client::ClientConnection[][src]

pub trait ClientConnection: Sized {
    type MessageStream: DnsClientStream + 'static;
    fn new_stream(
        &self
    ) -> ClientResult<(Box<Future<Item = Self::MessageStream, Error = Error> + Send>, Box<DnsStreamHandle>)>; }

Trait for client connections

Associated Types

The associated DNS Message stream type.

Required Methods

Return the inner Futures items

Consumes the connection and allows for future based operations afterward.

Implementors