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

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

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