Struct AndThenFuture
pub struct AndThenFuture<F1, F2: TryFuture, N> { /* private fields */ }
Response future from AndThen services.
Trait Implementations
impl<'__pin, F1, F2: TryFuture, N> Unpin for AndThenFuture<F1, F2, N>
where
PinnedFieldsOf<__Origin<'__pin, F1, F2, N>>: Unpin,
impl<F1, F2: TryFuture, N> Debug for AndThenFuture<F1, F2, N>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<F1, F2: TryFuture, N> Future for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, F2::Error>, F2, N>: Future,
type Output = <AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N> as Future>::Output;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<F1, F2, N> Freeze for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: Freeze,
impl<F1, F2, N> RefUnwindSafe for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: RefUnwindSafe,
impl<F1, F2, N> Send for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: Send,
impl<F1, F2, N> Sync for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: Sync,
impl<F1, F2, N> UnsafeUnpin for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: UnsafeUnpin,
impl<F1, F2, N> UnwindSafe for AndThenFuture<F1, F2, N>
where
AndThen<ErrInto<F1, <F2 as TryFuture>::Error>, F2, N>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for AndThenFuture<F1, F2, N>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<F, T, E> TryFuture for AndThenFuture<F1, F2, N>
where
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for AndThenFuture<F1, F2, N>
where
Fut: TryFuture + ?Sized,
impl<T> Any for AndThenFuture<F1, F2, N>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AndThenFuture<F1, F2, N>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AndThenFuture<F1, F2, N>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for AndThenFuture<F1, F2, N>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for AndThenFuture<F1, F2, N>
where
T: Future + ?Sized,
impl<T> FutureExt for AndThenFuture<F1, F2, N>
where
T: Future + ?Sized,
impl<T> Instrument for AndThenFuture<F1, F2, N>
impl<T> WithSubscriber for AndThenFuture<F1, F2, N>
impl<T, U> Into<U> for AndThenFuture<F1, F2, N>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AndThenFuture<F1, F2, N>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for AndThenFuture<F1, F2, N>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>