Struct ordered_stream::FromSortedStream
source · pub struct FromSortedStream<S> {
pub stream: S,
}
Expand description
An OrderedStream
wrapper around a Stream
.
Unlike FromStream
, the items in the Stream
are themselves ordered with no
additional data.
Fields§
§stream: S
Implementations§
source§impl<S> FromSortedStream<S>
impl<S> FromSortedStream<S>
Trait Implementations§
source§impl<S: Debug> Debug for FromSortedStream<S>
impl<S: Debug> Debug for FromSortedStream<S>
source§impl<S> FusedOrderedStream for FromSortedStream<S>where
S: FusedStream,
S::Item: Ord,
impl<S> FusedOrderedStream for FromSortedStream<S>where S: FusedStream, S::Item: Ord,
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.source§impl<S> OrderedStream for FromSortedStream<S>where
S: Stream,
S::Item: Ord,
impl<S> OrderedStream for FromSortedStream<S>where S: Stream, S::Item: Ord,
source§fn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
_: Option<&Self::Ordering>
) -> Poll<PollResult<Self::Ordering, Self::Data>>
fn poll_next_before( self: Pin<&mut Self>, cx: &mut Context<'_>, _: Option<&Self::Ordering> ) -> Poll<PollResult<Self::Ordering, Self::Data>>
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 moresource§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the stream.
source§fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
The minimum value of the ordering for any future items. Read more