pub struct Connector<A> { /* private fields */ }Expand description
DNS-aware TCP stream connector.
Implementations§
Trait Implementations§
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Error produced while checking readiness or processing a request.
Source§async fn call(
&self,
req: Connect<A>,
ctx: Ctx<'_, Connector<A>, SharedCfg>,
) -> Result<Io, <Connector<A> as Service<SharedCfg, Connect<A>>>::Error>
async fn call( &self, req: Connect<A>, ctx: Ctx<'_, Connector<A>, SharedCfg>, ) -> Result<Io, <Connector<A> as Service<SharedCfg, Connect<A>>>::Error>
Processes a request and asynchronously returns the response. Read more
Source§async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
Waits until the service is ready to process a request. Read more
Source§fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
Maps this service’s output to a different type, returning a new service. Read more
Source§fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
Maps this service’s error to a different type, returning a new service. Read more
Auto Trait Implementations§
impl<A> Freeze for Connector<A>
impl<A> RefUnwindSafe for Connector<A>where
A: RefUnwindSafe,
impl<A> Send for Connector<A>where
A: Send,
impl<A> Sync for Connector<A>where
A: Sync,
impl<A> Unpin for Connector<A>where
A: Unpin,
impl<A> UnsafeUnpin for Connector<A>
impl<A> UnwindSafe for Connector<A>where
A: UnwindSafe,
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<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
Source§fn into_service(self) -> S
fn into_service(self) -> S
Converts this value into a service.