Trait trust_dns::client::ClientConnection
[−]
[src]
pub trait ClientConnection: Sized { type MessageStream; fn unwrap(
self
) -> (Core, Box<Future<Item = Self::MessageStream, Error = Error>>, Box<ClientStreamHandle>); }
Trait for client connections
Associated Types
type MessageStream
The associated DNS Message stream type.
Required Methods
fn unwrap(
self
) -> (Core, Box<Future<Item = Self::MessageStream, Error = Error>>, Box<ClientStreamHandle>)
self
) -> (Core, Box<Future<Item = Self::MessageStream, Error = Error>>, Box<ClientStreamHandle>)
Return the inner Futures items
Consumes the connection and allows for future based operations afterward.
Implementors
impl ClientConnection for TcpClientConnection
impl ClientConnection for TlsClientConnection
impl ClientConnection for UdpClientConnection