Struct Reconnect

struct Reconnect<M, Target> { ... }
where
    M: Service<Target>

Reconnect to failed services.

Implementations

impl<M, Target> Reconnect<M, Target>

const fn new(mk_service: M, target: Target) -> Self

Lazily connect and reconnect to a Service.

const fn with_connection(init_conn: <M as >::Response, mk_service: M, target: Target) -> Self

Reconnect to a already connected Service.

impl<M, S, Target, Request> MakeService for Reconnect<M, Target>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<M, Target> Debug for Reconnect<M, Target>

fn fmt(self: &Self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result

impl<M, Target> Freeze for Reconnect<M, Target>

impl<M, Target> RefUnwindSafe for Reconnect<M, Target>

impl<M, Target> Send for Reconnect<M, Target>

impl<M, Target> Sync for Reconnect<M, Target>

impl<M, Target> Unpin for Reconnect<M, Target>

impl<M, Target> UnwindSafe for Reconnect<M, Target>

impl<M, Target, S, Request> Service for Reconnect<M, Target>

fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>
fn call(self: &mut Self, request: Request) -> <Self as >::Future

impl<T> Any for Reconnect<M, Target>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Reconnect<M, Target>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Reconnect<M, Target>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Reconnect<M, Target>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Reconnect<M, Target>

impl<T> WithSubscriber for Reconnect<M, Target>

impl<T, Request> ServiceExt for Reconnect<M, Target>

impl<T, U> Into for Reconnect<M, Target>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Reconnect<M, Target>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Reconnect<M, Target>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>