Struct ntex::connect::Resolver [−][src]
pub struct Resolver<T>(_);
Expand description
DNS Resolver Service
Implementations
Trait Implementations
impl<T: Address> Service for Resolver<T>
[src]
impl<T: Address> Service for Resolver<T>
[src]type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Connect<T>, Self::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<Connect<T>, Self::Error>>>>
The future response value.
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]Returns Ready
when the service is able to process requests. Read more
fn call(&self, req: Connect<T>) -> Self::Future
[src]
fn call(&self, req: Connect<T>) -> Self::Future
[src]Process the request and return the response asynchronously. Read more
fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
[src]
fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
[src]Shutdown service. Read more
impl<T: Address> ServiceFactory for Resolver<T>
[src]
impl<T: Address> ServiceFactory for Resolver<T>
[src]type Error = ConnectError
type Error = ConnectError
Errors produced by the service
fn new_service(&self, _: ()) -> Self::Future
[src]
fn new_service(&self, _: ()) -> Self::Future
[src]Create and return a new service value asynchronously.
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]Map this service’s output to a different type, returning a new service of the resulting type. Read more
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
[src]
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
[src]Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<T> RefUnwindSafe for Resolver<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Resolver<T> where
T: Send,
T: Send,
impl<T> Sync for Resolver<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Resolver<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Resolver<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoService<T> for T where
T: Service,
[src]
impl<T> IntoService<T> for T where
T: Service,
[src]pub fn into_service(self) -> T
[src]
pub fn into_service(self) -> T
[src]Convert to a Service
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]pub fn into_factory(self) -> T
[src]
pub fn into_factory(self) -> T
[src]Convert Self
to a ServiceFactory
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more