[][src]Struct trust_dns_client::client::RetryClientHandle

#[must_use = "queries can only be sent through a ClientHandle"]
pub struct RetryClientHandle<H> where
    H: DnsHandle + Send + Unpin
{ /* fields omitted */ }

This is an alias for trust_dns_proto::RetryDnsHandle 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> RetryDnsHandle<H> where
    H: DnsHandle + Unpin
[src]

This is an alias for trust_dns_proto::RetryDnsHandle

pub fn new(handle: H, attempts: usize) -> RetryDnsHandle<H>[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 for RetryDnsHandle<H> where
    H: DnsHandle + Send + Unpin + Clone
[src]

impl<H> DnsHandle for RetryDnsHandle<H> where
    H: DnsHandle + Send + Unpin + 'static, 
[src]

type Response = Pin<Box<dyn Future<Output = Result<DnsResponse, ProtoError>> + 'static + Send + Unpin>>

The associated response from the response future, this should resolve to the Response message

Auto Trait Implementations

impl<H> Send for RetryDnsHandle<H>

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

impl<H> Unpin for RetryDnsHandle<H>

impl<H> UnwindSafe for RetryDnsHandle<H> where
    H: UnwindSafe

impl<H> RefUnwindSafe for RetryDnsHandle<H> where
    H: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,