Struct Collect
pub struct Collect<T>
where
T: Body + ?Sized, { /* private fields */ }
Future that resolves into a Collected.
Trait Implementations
impl<'__pin, T> Unpin for Collect<T>
where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
T: Body + ?Sized,
impl<T: Body + ?Sized> Future for Collect<T>
type Output = Result<Collected<<T as Body>::Data>, <T as Body>::Error>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<T> Freeze for Collect<T>
where
Option<Collected<<T as Body>::Data>>: Freeze,
T: Freeze + ?Sized,
impl<T> RefUnwindSafe for Collect<T>
where
Option<Collected<<T as Body>::Data>>: RefUnwindSafe,
T: RefUnwindSafe + ?Sized,
impl<T> Send for Collect<T>
where
Option<Collected<<T as Body>::Data>>: Send,
T: Send + ?Sized,
impl<T> Sync for Collect<T>
where
Option<Collected<<T as Body>::Data>>: Sync,
T: Sync + ?Sized,
impl<T> UnsafeUnpin for Collect<T>
where
Option<Collected<<T as Body>::Data>>: UnsafeUnpin,
T: UnsafeUnpin + ?Sized,
impl<T> UnwindSafe for Collect<T>
where
Option<Collected<<T as Body>::Data>>: UnwindSafe,
T: UnwindSafe + ?Sized,
Blanket Implementations
impl<F> IntoFuture for Collect<T>
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 Collect<T>
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<T> Any for Collect<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Collect<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Collect<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Collect<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Collect<T>
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 Collect<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Collect<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>