Struct trust_dns_proto::xfer::retry_dns_handle::RetryDnsHandle [−][src]
#[must_use = "queries can only be sent through a ClientHandle"]pub struct RetryDnsHandle<H: DnsHandle<Error = E>, E = <H as DnsHandle>::Error> where
E: FromProtoError + 'static, { /* fields omitted */ }
Can be used to reattempt a queries if they fail
note Current value of this is not clear, it may be removed
Methods
impl<H, E> RetryDnsHandle<H, E> where
H: DnsHandle<Error = E>,
E: FromProtoError + 'static, [src]
impl<H, E> RetryDnsHandle<H, E> where
H: DnsHandle<Error = E>,
E: FromProtoError + 'static, pub fn new(handle: H, attempts: usize) -> Self[src]
pub fn new(handle: H, attempts: usize) -> SelfCreates a new Client handler for reattempting requests on failures.
Arguments
handle- handle to the dns connectionattempts- number of attempts before failing
Trait Implementations
impl<H: Clone + DnsHandle<Error = E>, E: Clone> Clone for RetryDnsHandle<H, E> where
E: FromProtoError + 'static, [src]
impl<H: Clone + DnsHandle<Error = E>, E: Clone> Clone for RetryDnsHandle<H, E> where
E: FromProtoError + 'static, fn clone(&self) -> RetryDnsHandle<H, E>[src]
fn clone(&self) -> RetryDnsHandle<H, 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<H, E> DnsHandle for RetryDnsHandle<H> where
H: DnsHandle<Error = E> + 'static,
E: FromProtoError + 'static, [src]
impl<H, E> DnsHandle for RetryDnsHandle<H> where
H: DnsHandle<Error = E> + 'static,
E: FromProtoError + 'static, type Error = <H as DnsHandle>::Error
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) -> boolOny 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<H, E> Send for RetryDnsHandle<H, E>
impl<H, E> Send for RetryDnsHandle<H, E>impl<H, E> Sync for RetryDnsHandle<H, E> where
H: Sync,
impl<H, E> Sync for RetryDnsHandle<H, E> where
H: Sync,