Struct Reconnect
pub struct Reconnect<M, Target>
where
M: Service<Target>, { /* private fields */ }
Reconnect to failed services.
Implementations
impl<M, Target> Reconnect<M, Target>
where
M: Service<Target>,
Trait Implementations
impl<M, Target> Debug for Reconnect<M, Target>
where
M: Service<Target> + Debug,
M::Future: Debug,
M::Response: Debug,
Target: Debug,
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl<M, Target, S, Request> Service<Request> for Reconnect<M, Target>
where
M: Service<Target, Response = S>,
S: Service<Request>,
M::Future: Unpin,
BoxError: From<M::Error> + From<S::Error>,
Target: Clone,
type Response = <S as Service<Request>>::Response;type Error = Box<dyn Error + Sync + Send>;type Future = ResponseFuture<<S as Service<Request>>::Future, <M as Service<Target>>::Error>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, request: Request) -> Self::Future