Struct ordered_stream::Join

source ·
pub struct Join<A, B>where
    A: OrderedStream,
    B: OrderedStream<Data = A::Data, Ordering = A::Ordering>,
{ /* private fields */ }
Expand description

A stream for the join function.

Implementations§

Split into the source streams.

This method returns the source streams along with any buffered item and its ordering.

Provide direct access to the underlying stream.

This may be useful if the stream provides APIs beyond OrderedStream. Note that the join itself may be buffering an item from this stream, so you should consult Self::peek_buffered and, if needed, Self::take_buffered before polling it directly.

Provide direct access to the underlying stream.

This may be useful if the stream provides APIs beyond OrderedStream. Note that the join itself may be buffering an item from this stream, so you should consult Self::peek_buffered and, if needed, Self::take_buffered before polling it directly.

Allow access to the buffered item, if any.

At most one of the two sides will be Some. The returned item is a candidate for being the next item returned by the joined stream, but it could not be returned by the most recent OrderedStream::poll_next_before call.

Remove the buffered item, if one is present.

This does not poll either underlying stream. See Self::peek_buffered for details on why buffering exists.

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.