Struct trust_dns_proto::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]
H: DnsHandle<Error = E>,
E: FromProtoError + 'static,
pub fn new(handle: H, attempts: usize) -> Self
[src]
Creates 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]
E: FromProtoError + 'static,
fn clone(&self) -> RetryDnsHandle<H, E>
[src]
Returns a copy of the value. Read more
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]
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(
&mut self,
message: Message
) -> Box<Future<Item = Message, Error = Self::Error>>
[src]
&mut self,
message: Message
) -> Box<Future<Item = Message, Error = Self::Error>>
Send a message via the channel in the client Read more
fn is_verifying_dnssec(&self) -> bool
[src]
Ony returns true if and only if this DNS handle is validating DNSSec. Read more
fn lookup(
&mut self,
query: Query
) -> Box<Future<Item = Message, Error = Self::Error>>
[src]
&mut self,
query: Query
) -> Box<Future<Item = Message, Error = Self::Error>>
A classic DNS query Read more
Auto Trait Implementations
impl<H, E> Send for RetryDnsHandle<H, E> where
H: Send,
H: Send,
impl<H, E> Sync for RetryDnsHandle<H, E> where
H: Sync,
H: Sync,