Struct hyper_system_resolver::background::Resolver[][src]

pub struct Resolver<T> { /* fields omitted */ }

A hyper-compatible resolver implementation. Delegates the actual resolution logic to the generic parameter T.

Implementations

impl<T> Resolver<T>[src]

pub fn new(inner: T) -> Self[src]

Create a new Resolver backed by inner resolution implementation.

pub fn into_inner(self) -> T[src]

Consume Resolver and return the wrapped T.

Trait Implementations

impl<T> AsRef<T> for Resolver<T>[src]

impl<T: Clone> Clone for Resolver<T>[src]

impl<T> Debug for Resolver<T>[src]

impl<T> Service<Name> for Resolver<T> where
    T: Resolve + Send + Sync + 'static, 
[src]

type Response = <T as Resolve>::Iter

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = ResolverFuture<<T as Resolve>::Iter>

The future response value.

Auto Trait Implementations

impl<T> RefUnwindSafe for Resolver<T> where
    T: RefUnwindSafe

impl<T> Send for Resolver<T> where
    T: Send

impl<T> Sync for Resolver<T> where
    T: Sync

impl<T> Unpin for Resolver<T> where
    T: Unpin

impl<T> UnwindSafe for Resolver<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.