Struct trust_dns::BufClientStreamHandle [] [src]

pub struct BufClientStreamHandle<E> where
    E: FromProtoError
{ /* fields omitted */ }

A buffering stream bound to a SocketAddr

Methods

impl<E> BufDnsStreamHandle<E> where
    E: FromProtoError
[src]

[src]

Constructs a new Buffered Stream Handle, used for sending data to the DNS peer.

Arguments

  • name_server - the address of the DNS server
  • sender - the handle being used to send data to the server

Trait Implementations

impl<E> DnsStreamHandle for BufDnsStreamHandle<E> where
    E: FromProtoError
[src]

The Error type to be returned if there is an error

[src]

Sends a message to the Handle for delivery to the server.