Struct tokio_process_stream::ChildStream
source · [−]pub struct ChildStream<Sout, Serr> { /* private fields */ }
Expand description
The main tokio-process-stream struct, which implements the
Stream
trait
Trait Implementations
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
impl<Sout, Serr> TryFrom<&'_ mut Command> for ChildStream<Sout, Serr> where
ChildStream<Sout, Serr>: From<Child>,
impl<Sout, Serr> TryFrom<&'_ mut Command> for ChildStream<Sout, Serr> where
ChildStream<Sout, Serr>: From<Child>,
impl<Sout, Serr> TryFrom<Command> for ChildStream<Sout, Serr> where
ChildStream<Sout, Serr>: From<Child>,
impl<Sout, Serr> TryFrom<Command> for ChildStream<Sout, Serr> where
ChildStream<Sout, Serr>: From<Child>,
impl<'__pin, Sout, Serr> Unpin for ChildStream<Sout, Serr> where
__Origin<'__pin, Sout, Serr>: Unpin,
Auto Trait Implementations
impl<Sout, Serr> !RefUnwindSafe for ChildStream<Sout, Serr>
impl<Sout, Serr> Send for ChildStream<Sout, Serr> where
Serr: Send,
Sout: Send,
impl<Sout, Serr> Sync for ChildStream<Sout, Serr> where
Serr: Sync,
Sout: Sync,
impl<Sout, Serr> !UnwindSafe for ChildStream<Sout, Serr>
Blanket Implementations
Mutably borrows from an owned value. Read more
Consumes and returns the next value in the stream or None
if the
stream is finished. Read more
Consumes and returns the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more
Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
Combine two streams into one by interleaving the output of both as it is produced. Read more
Filters the values produced by this stream according to the provided predicate. Read more
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided closure. Read more
Creates a new stream of at most n
items of the underlying stream. Read more
Take elements from this stream while the provided predicate
resolves to true
. Read more
Creates a new stream that will skip the n
first items of the
underlying stream. Read more
Skip elements from the underlying stream while the provided predicate
resolves to true
. Read more
Tests if every element of the stream matches a predicate. Read more
Tests if any element of the stream matches a predicate. Read more
Combine two streams into one by first returning all values from the first stream then all values from the second stream. Read more
A combinator that applies a function to every element in a stream producing a single, final value. Read more
Drain stream pushing all emitted values into a collection. Read more
Applies a per-item timeout to the passed stream. Read more