Struct trust_dns::udp::UdpClientConnection
[−]
[src]
pub struct UdpClientConnection { /* fields omitted */ }
UDP based DNS Client connection
Use with trust_dns::client::Client
impls
Methods
impl UdpClientConnection
[src]
pub fn new(name_server: SocketAddr) -> ClientResult<Self>
[src]
Creates a new client connection.
Note this has side affects of binding the socket to 0.0.0.0 and starting the listening event_loop. Expect this to change in the future.
Arguments
name_server
- address of the name server to use for queries
Trait Implementations
impl Clone for UdpClientConnection
[src]
fn clone(&self) -> UdpClientConnection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ClientConnection for UdpClientConnection
[src]
type MessageStream = UdpClientStream
The associated DNS Message stream type.
fn new_stream(
&self
) -> ClientResult<(Box<Future<Item = Self::MessageStream, Error = Error> + Send>, Box<DnsStreamHandle<Error = ClientError> + Send>)>
[src]
&self
) -> ClientResult<(Box<Future<Item = Self::MessageStream, Error = Error> + Send>, Box<DnsStreamHandle<Error = ClientError> + Send>)>
Return the inner Futures items Read more