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