pub struct Collect<T>where
T: Body,{
body: T,
collected: Option<Collected<T::Data>>,
is_data_done: bool,
}
Expand description
Future that resolves into a Collected
.
Fields§
§body: T
§collected: Option<Collected<T::Data>>
§is_data_done: bool
Implementations§
Trait Implementations§
source§impl<T: Body> Future for Collect<T>
impl<T: Body> Future for Collect<T>
impl<'__pin, T> Unpin for Collect<T>where __Origin<'__pin, T>: Unpin, T: Body,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Collect<T>where T: RefUnwindSafe, <T as Body>::Data: RefUnwindSafe,
impl<T> Send for Collect<T>where T: Send, <T as Body>::Data: Send,
impl<T> Sync for Collect<T>where T: Sync, <T as Body>::Data: Sync,
impl<T> UnwindSafe for Collect<T>where T: UnwindSafe, <T as Body>::Data: UnwindSafe,
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,
§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