Struct trust_dns_proto::xfer::BufDnsStreamHandle[][src]

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

A buffering stream bound to a SocketAddr

Methods

impl<E> BufDnsStreamHandle<E> where
    E: FromProtoError
[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

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

Auto Trait Implementations

impl<E> Send for BufDnsStreamHandle<E>

impl<E> Sync for BufDnsStreamHandle<E> where
    E: Sync