Struct trust_dns_proto::xfer::dns_handle::BasicDnsHandle [−][src]
pub struct BasicDnsHandle<E: FromProtoError> { /* fields omitted */ }
Root DnsHandle implementaton returned by DnsFuture
This can be used directly to perform queries. See trust_dns::client::SecureDnsHandle
for
a DNSSEc chain validator.
Methods
impl<E: FromProtoError> BasicDnsHandle<E>
[src]
impl<E: FromProtoError> BasicDnsHandle<E>
pub fn new(
message_sender: UnboundedSender<(DnsRequest, Complete<Result<DnsResponse, E>>)>
) -> Self
[src]
pub fn new(
message_sender: UnboundedSender<(DnsRequest, Complete<Result<DnsResponse, E>>)>
) -> Self
Returns a new BasicDnsHandle wrapping the message_sender
Trait Implementations
impl<E: Clone + FromProtoError> Clone for BasicDnsHandle<E>
[src]
impl<E: Clone + FromProtoError> Clone for BasicDnsHandle<E>
fn clone(&self) -> BasicDnsHandle<E>
[src]
fn clone(&self) -> BasicDnsHandle<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<E> DnsHandle for BasicDnsHandle<E> where
E: FromProtoError + 'static,
[src]
impl<E> DnsHandle for BasicDnsHandle<E> where
E: FromProtoError + 'static,
type Error = E
The associated error type returned by future send operations
fn send<R: Into<DnsRequest>>(
&mut self,
request: R
) -> Box<Future<Item = DnsResponse, Error = Self::Error> + Send>
[src]
fn send<R: Into<DnsRequest>>(
&mut self,
request: R
) -> Box<Future<Item = DnsResponse, Error = Self::Error> + Send>
Send a message via the channel in the client Read more
fn is_verifying_dnssec(&self) -> bool
[src]
fn is_verifying_dnssec(&self) -> bool
Ony returns true if and only if this DNS handle is validating DNSSec. Read more
fn lookup(
&mut self,
query: Query,
options: DnsRequestOptions
) -> Box<Future<Item = DnsResponse, Error = Self::Error> + Send>
[src]
fn lookup(
&mut self,
query: Query,
options: DnsRequestOptions
) -> Box<Future<Item = DnsResponse, Error = Self::Error> + Send>
A classic DNS query Read more
Auto Trait Implementations
impl<E> Send for BasicDnsHandle<E>
impl<E> Send for BasicDnsHandle<E>
impl<E> Sync for BasicDnsHandle<E>
impl<E> Sync for BasicDnsHandle<E>