Struct TryForEach

#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct TryForEach<St, Fut, F> { /* private fields */ }

Future for the try_for_each method.

Trait Implementations

impl<'__pin, St, Fut, F> Unpin for TryForEach<St, Fut, F> where PinnedFieldsOf<__Origin<'__pin, St, Fut, F>>: Unpin,

impl<St, Fut, F> Debug for TryForEach<St, Fut, F> where St: Debug, Fut: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<St, Fut, F> Future for TryForEach<St, Fut, F> where St: TryStream, F: FnMut(St::Ok) -> Fut, Fut: TryFuture<Ok = (), Error = St::Error>,

type Output = Result<(), <St as TryStream>::Error>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<St, Fut, F> Freeze for TryForEach<St, Fut, F> where St: Freeze, F: Freeze, Option<Fut>: Freeze,

impl<St, Fut, F> RefUnwindSafe for TryForEach<St, Fut, F> where St: RefUnwindSafe, F: RefUnwindSafe, Option<Fut>: RefUnwindSafe,

impl<St, Fut, F> Send for TryForEach<St, Fut, F> where St: Send, F: Send, Option<Fut>: Send,

impl<St, Fut, F> Sync for TryForEach<St, Fut, F> where St: Sync, F: Sync, Option<Fut>: Sync,

impl<St, Fut, F> UnsafeUnpin for TryForEach<St, Fut, F> where St: UnsafeUnpin, F: UnsafeUnpin, Option<Fut>: UnsafeUnpin,

impl<St, Fut, F> UnwindSafe for TryForEach<St, Fut, F> where St: UnwindSafe, F: UnwindSafe, Option<Fut>: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for TryForEach<St, Fut, F> 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 TryForEach<St, Fut, F> 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 TryForEach<St, Fut, F> where Fut: TryFuture + ?Sized,

impl<T> Any for TryForEach<St, Fut, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TryForEach<St, Fut, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TryForEach<St, Fut, F> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for TryForEach<St, Fut, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for TryForEach<St, Fut, F> where T: Future + ?Sized,

impl<T, U> Into<U> for TryForEach<St, Fut, F> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for TryForEach<St, Fut, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for TryForEach<St, Fut, F> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>