pub struct Collect<T>{
pub(crate) collected: Option<Collected<T::Data>>,
pub(crate) body: T,
}
Expand description
Future that resolves into a Collected
.
Fields§
§collected: Option<Collected<T::Data>>
§body: T
Trait Implementations§
Source§impl<T: Body + ?Sized> Future for Collect<T>
impl<T: Body + ?Sized> Future for Collect<T>
impl<'__pin, T> Unpin for Collect<T>
Auto Trait Implementations§
impl<T> Freeze for Collect<T>
impl<T> RefUnwindSafe for Collect<T>
impl<T> Send for Collect<T>
impl<T> Sync for Collect<T>
impl<T> UnwindSafe for Collect<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more