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]

[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]

[src]

Returns a copy of the value. Read more

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]

The associated error type returned by future send operations

[src]

Send a message via the channel in the client Read more

[src]

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

[src]

A classic DNS query Read more

Auto Trait Implementations

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

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