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]

Creates a new Client handler for reattempting requests on failures.

Arguments

  • handle - handle to the dns connection
  • attempts - 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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<H, E> DnsHandle for RetryDnsHandle<H> where
    H: DnsHandle<Error = E> + 'static,
    E: FromProtoError + 'static, 
[src]

The associated error type returned by future send operations

Send a message via the channel in the client Read more

Ony returns true if and only if this DNS handle is validating DNSSec. Read more

A classic DNS query Read more

Auto Trait Implementations

impl<H, E> Send for RetryDnsHandle<H, E>

impl<H, E> Sync for RetryDnsHandle<H, E> where
    H: Sync