Trait trust_dns_proto::xfer::dns_handle::DnsStreamHandle [−][src]
pub trait DnsStreamHandle { type Error: FromProtoError; fn send(&mut self, buffer: Vec<u8>) -> Result<(), Self::Error>; }
Implementations of Sinks for sending DNS messages
Associated Types
type Error: FromProtoError
The Error type to be returned if there is an error
Required Methods
fn send(&mut self, buffer: Vec<u8>) -> Result<(), Self::Error>
Sends a message to the Handle for delivery to the server.
Implementors
impl<E> DnsStreamHandle for StreamHandle<E> where
E: FromProtoError, type Error = E;impl<E> DnsStreamHandle for BufDnsStreamHandle<E> where
E: FromProtoError, type Error = E;