Struct hyper_system_resolver::background::Resolver [−][src]
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]
T: Resolve + Send + Sync + 'static,
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.
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Error>>[src]
fn call(&mut self, name: Name) -> Self::Future[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Resolver<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for Resolver<T> where
T: Send, [src]
T: Send,
impl<T> Sync for Resolver<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for Resolver<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for Resolver<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,