Struct Flatten
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct Flatten<F>
where
F: Future, { /* private fields */ }
Future for the flatten method.
Trait Implementations
impl<'__pin, F> Unpin for Flatten<F>
where
PinnedFieldsOf<__Origin<'__pin, F>>: Unpin,
F: Future,
impl<F> Debug for Flatten<F>
where
Flatten<F, <F as Future>::Output>: Debug,
F: Future,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<F> FusedFuture for Flatten<F>
where
Flatten<F, <F as Future>::Output>: FusedFuture,
F: Future,
fn is_terminated(&self) -> bool
impl<F> Future for Flatten<F>
where
Flatten<F, <F as Future>::Output>: Future,
F: Future,
type Output = <Flatten<F, <F as Future>::Output> as Future>::Output;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<F> Freeze for Flatten<F>
where
Flatten<F, <F as Future>::Output>: Freeze,
impl<F> RefUnwindSafe for Flatten<F>
where
Flatten<F, <F as Future>::Output>: RefUnwindSafe,
impl<F> Send for Flatten<F>
where
Flatten<F, <F as Future>::Output>: Send,
impl<F> Sync for Flatten<F>
where
Flatten<F, <F as Future>::Output>: Sync,
impl<F> UnsafeUnpin for Flatten<F>
where
Flatten<F, <F as Future>::Output>: UnsafeUnpin,
impl<F> UnwindSafe for Flatten<F>
where
Flatten<F, <F as Future>::Output>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for Flatten<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 Flatten<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 Flatten<F>
where
Fut: TryFuture + ?Sized,
impl<T> Any for Flatten<F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Flatten<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Flatten<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Flatten<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for Flatten<F>
where
T: Future + ?Sized,
impl<T, U> Into<U> for Flatten<F>
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 Flatten<F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Flatten<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>