Struct AndThen

#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct AndThen<Fut1, Fut2, F> { /* private fields */ }

Future for the and_then method.

Trait Implementations

impl<'__pin, Fut1, Fut2, F> Unpin for AndThen<Fut1, Fut2, F> where PinnedFieldsOf<__Origin<'__pin, Fut1, Fut2, F>>: Unpin,

impl<Fut1, Fut2, F> Debug for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: Debug,

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

impl<Fut1, Fut2, F> FusedFuture for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: FusedFuture,

fn is_terminated(&self) -> bool

impl<Fut1, Fut2, F> Future for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: Future,

type Output = <TryFlatten<MapOk<Fut1, F>, Fut2> as Future>::Output;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<Fut1, Fut2, F> Freeze for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: Freeze,

impl<Fut1, Fut2, F> RefUnwindSafe for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: RefUnwindSafe,

impl<Fut1, Fut2, F> Send for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: Send,

impl<Fut1, Fut2, F> Sync for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: Sync,

impl<Fut1, Fut2, F> UnsafeUnpin for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: UnsafeUnpin,

impl<Fut1, Fut2, F> UnwindSafe for AndThen<Fut1, Fut2, F> where TryFlatten<MapOk<Fut1, F>, Fut2>: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for AndThen<Fut1, Fut2, F> 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 AndThen<Fut1, Fut2, F> 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 AndThen<Fut1, Fut2, F> where Fut: TryFuture + ?Sized,

impl<T> Any for AndThen<Fut1, Fut2, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AndThen<Fut1, Fut2, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AndThen<Fut1, Fut2, F> where T: ?Sized,

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

impl<T> From<T> for AndThen<Fut1, Fut2, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for AndThen<Fut1, Fut2, F> where T: Future + ?Sized,

impl<T, U> Into<U> for AndThen<Fut1, Fut2, F> where U: From<T>,

fn into(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<U> for AndThen<Fut1, Fut2, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AndThen<Fut1, Fut2, F> where U: TryFrom<T>,

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