pub struct Resolver<T> { /* private fields */ }Expand description
DNS Resolver Service
Implementations§
Trait Implementations§
Source§impl<T: Address> Service for Resolver<T>
impl<T: Address> Service for Resolver<T>
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
Source§type Future = Either<Pin<Box<dyn Future<Output = Result<<Resolver<T> as Service>::Response, <Resolver<T> as Service>::Error>>>>, Ready<Result<Connect<T>, <Resolver<T> as Service>::Error>>>
type Future = Either<Pin<Box<dyn Future<Output = Result<<Resolver<T> as Service>::Response, <Resolver<T> as Service>::Error>>>>, Ready<Result<Connect<T>, <Resolver<T> as Service>::Error>>>
The future response value.
Source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moreSource§fn call(&mut self, req: Connect<T>) -> Self::Future
fn call(&mut self, req: Connect<T>) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<T> Freeze for Resolver<T>
impl<T> !RefUnwindSafe for Resolver<T>
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>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoService<T> for Twhere
T: Service,
impl<T> IntoService<T> for Twhere
T: Service,
Source§fn into_service(self) -> T
fn into_service(self) -> T
Convert to a
Service