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
sourceimpl<S> FromSortedStream<S>
impl<S> FromSortedStream<S>
Trait Implementations
sourceimpl<S: Debug> Debug for FromSortedStream<S>
impl<S: Debug> Debug for FromSortedStream<S>
sourceimpl<S> FusedOrderedStream for FromSortedStream<S> where
S: FusedStream,
S::Item: Ord,
impl<S> FusedOrderedStream for FromSortedStream<S> where
S: FusedStream,
S::Item: Ord,
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns true
if the stream should no longer be polled.
sourceimpl<S> OrderedStream for FromSortedStream<S> where
S: Stream,
S::Item: Ord,
impl<S> OrderedStream for FromSortedStream<S> where
S: Stream,
S::Item: Ord,
sourcefn 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 more
sourcefn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the stream.
sourcefn 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
impl<'__pin, S> Unpin for FromSortedStream<S> where
__Origin<'__pin, S>: Unpin,
Auto Trait Implementations
impl<S> RefUnwindSafe for FromSortedStream<S> where
S: RefUnwindSafe,
impl<S> Send for FromSortedStream<S> where
S: Send,
impl<S> Sync for FromSortedStream<S> where
S: Sync,
impl<S> UnwindSafe for FromSortedStream<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more