[][src]Struct futures_util::stream::Inspect

#[must_use = "streams do nothing unless polled"]
pub struct Inspect<St, F> where
    St: Stream
{ /* fields omitted */ }

Do something with the items of a stream, passing it on.

This is created by the Stream::inspect method.

Methods

impl<St, F> Inspect<St, F> where
    St: Stream,
    F: FnMut(&St::Item), 
[src]

Important traits for &'a mut W

Acquires a reference to the underlying stream that this combinator is pulling from.

Important traits for &'a mut W

Acquires a mutable reference to the underlying stream that this combinator is pulling from.

Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.

Consumes this combinator, returning the underlying stream.

Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.

Trait Implementations

impl<St: Debug, F: Debug> Debug for Inspect<St, F> where
    St: Stream
[src]

Formats the value using the given formatter. Read more

impl<St: Stream + Unpin, F> Unpin for Inspect<St, F>
[src]

impl<St, F> Stream for Inspect<St, F> where
    St: Stream,
    F: FnMut(&St::Item), 
[src]

Values yielded by the stream.

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

impl<St, F> Send for Inspect<St, F> where
    F: Send,
    St: Send

impl<St, F> Sync for Inspect<St, F> where
    F: Sync,
    St: Sync