[−][src]Struct futures_util::stream::ForEach
A stream combinator which executes a unit closure over each item on a stream.
This structure is returned by the Stream::for_each
method.
Trait Implementations
impl<St: Debug, Fut: Debug, F: Debug> Debug for ForEach<St, Fut, F>
[src]
[+]
impl<St: Debug, Fut: Debug, F: Debug> Debug for ForEach<St, Fut, F>
impl<St, Fut, F> Unpin for ForEach<St, Fut, F> where
St: Stream + Unpin,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()> + Unpin,
[src]
impl<St, Fut, F> Unpin for ForEach<St, Fut, F> where
St: Stream + Unpin,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()> + Unpin,
impl<St, Fut, F> Future for ForEach<St, Fut, F> where
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
[src]
[+]
impl<St, Fut, F> Future for ForEach<St, Fut, F> where
St: Stream,
F: FnMut(St::Item) -> Fut,
Fut: Future<Output = ()>,
impl<St: FusedStream, Fut, F> FusedFuture for ForEach<St, Fut, F>
[src]
[+]
impl<St: FusedStream, Fut, F> FusedFuture for ForEach<St, Fut, F>
Auto Trait Implementations
impl<St, Fut, F> Send for ForEach<St, Fut, F> where
F: Send,
Fut: Send,
St: Send,
impl<St, Fut, F> Send for ForEach<St, Fut, F> where
F: Send,
Fut: Send,
St: Send,
impl<St, Fut, F> Sync for ForEach<St, Fut, F> where
F: Sync,
Fut: Sync,
St: Sync,
impl<St, Fut, F> Sync for ForEach<St, Fut, F> where
F: Sync,
Fut: Sync,
St: Sync,
Blanket Implementations
impl<T> FutureExt for T where
T: Future + ?Sized,
[src]
[−]
impl<T> FutureExt for T where
T: Future + ?Sized,
fn map<U, F>(self, f: F) -> Map<Self, F> where | [src] |
Map this future's output to a different type, returning a new future of the resulting type. Read more
fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> where | [src] |
Chain on a computation for when a future finished, passing the result of the future to the provided closure f
. Read more
fn join<Fut2>(self, other: Fut2) -> Join<Self, Fut2> where | [src] |
Joins the result of two futures, waiting for them both to complete. Read more
fn join3<Fut2, Fut3>( | [src] |
Same as join
, but with more futures. Read more
fn join4<Fut2, Fut3, Fut4>( | [src] |
Same as join
, but with more futures. Read more
fn join5<Fut2, Fut3, Fut4, Fut5>( | [src] |
Same as join
, but with more futures. Read more
fn into_stream(self) -> IntoStream<Self> where | [src] |
Convert this future into a single element stream. Read more
fn flatten(self) -> Flatten<Self> where | [src] |
Flatten the execution of this future when the successful result of this future is itself another future. Read more
fn flatten_stream(self) -> FlattenStream<Self> where | [src] |
Flatten the execution of this future when the successful result of this future is a stream. Read more
fn fuse(self) -> Fuse<Self> where | [src] |
Fuse a future such that poll
will never again be called once it has completed. This method can be used to turn any Future
into a FusedFuture
. Read more
fn inspect<F>(self, f: F) -> Inspect<Self, F> where | [src] |
Do something with the output of a future before passing it on. Read more
fn catch_unwind(self) -> CatchUnwind<Self> where | [src] |
Catches unwinding panics while polling the future. Read more
fn shared(self) -> Shared<Self> where | [src] |
Create a cloneable handle to this future where all handles will resolve to the same result. Read more
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>) where | [src] |
Turn this future into a future that yields ()
on completion and sends its output to another future on a separate task. Read more
fn boxed(self) -> Pin<Box<Self>> where | [src] |
Wrap the future in a Box, pinning it.
fn unit_error(self) -> UnitError<Self> where | [src] |
Turns a Future
into a TryFuture
with Error = ()
.
fn poll_unpin(&mut self, lw: &LocalWaker) -> Poll<Self::Output> where | [src] |
A convenience for calling Future::poll
on Unpin
future types.
impl<T> From for T
[src]
[−]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
[−]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[−]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
[−]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[−]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[−]
impl<T> BorrowMut for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,