Struct trust_dns::BufClientStreamHandle [−][src]
pub struct BufClientStreamHandle { /* fields omitted */ }
A buffering stream bound to a SocketAddr
Methods
impl BufDnsStreamHandle
[src]
impl BufDnsStreamHandle
pub fn new(
name_server: SocketAddr,
sender: BufStreamHandle
) -> BufDnsStreamHandle
[src]
pub fn new(
name_server: SocketAddr,
sender: BufStreamHandle
) -> BufDnsStreamHandle
Constructs a new Buffered Stream Handle, used for sending data to the DNS peer.
Arguments
name_server
- the address of the DNS serversender
- the handle being used to send data to the server
Trait Implementations
impl DnsStreamHandle for BufDnsStreamHandle
[src]
impl DnsStreamHandle for BufDnsStreamHandle
fn send(&mut self, buffer: SerialMessage) -> Result<(), ProtoError>
[src]
fn send(&mut self, buffer: SerialMessage) -> Result<(), ProtoError>
Sends a message to the Handle for delivery to the server.
Auto Trait Implementations
impl Send for BufDnsStreamHandle
impl Send for BufDnsStreamHandle
impl Sync for BufDnsStreamHandle
impl Sync for BufDnsStreamHandle