pub struct FromStream<S, F, Ordering> { /* private fields */ }
Expand description

An OrderedStream wrapper around a Stream.

This caches the last-used ordering point returned by the stream and uses it to produce NoneBefore results. This makes it suitable for using to adapt streams that are filtered or mapped before joining. It still relies on the original stream producing a later-ordered element to allow other streams to progress, however.

Implementations§

Create a new OrderedStream by applying a split_item closure to each element produced by the original stream.

Helper function to simplify the creation of a stream when you have a get_ordering function.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns true if the stream should no longer be polled.
The unordered data carried by this stream Read more
The type ordered by this stream. Read more
Attempt to pull out the next value of this stream, registering the current task for wakeup if needed, and returning NoneBefore if it is known that the stream will not produce any more values ordered before the given point. Read more
The minimum value of the ordering for any future items. Read more
Returns the bounds on the remaining length of the stream.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.