Struct tokio_stream::stream_ext::collect::Collect
source · pub struct Collect<T, U>{
stream: T,
collection: U::InternalCollection,
_pin: PhantomPinned,
}
Expand description
Future returned by the collect
method.
Fields§
§stream: T
§collection: U::InternalCollection
§_pin: PhantomPinned
Implementations§
Trait Implementations§
impl<'__pin, T, U> Unpin for Collect<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for Collect<T, U>
impl<T, U> RefUnwindSafe for Collect<T, U>where
T: RefUnwindSafe,
<U as FromStreamPriv<<T as Stream>::Item>>::InternalCollection: RefUnwindSafe,
impl<T, U> Send for Collect<T, U>
impl<T, U> Sync for Collect<T, U>
impl<T, U> UnwindSafe for Collect<T, U>
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