Struct ordered_stream::Peekable
source · pub struct Peekable<S: OrderedStream> { /* private fields */ }
Expand description
A stream for the peekable
function.
Implementations§
source§impl<S: OrderedStream> Peekable<S>
impl<S: OrderedStream> Peekable<S>
Trait Implementations§
source§impl<S: Debug + OrderedStream> Debug for Peekable<S>where
S::Ordering: Debug,
S::Data: Debug,
impl<S: Debug + OrderedStream> Debug for Peekable<S>where
S::Ordering: Debug,
S::Data: Debug,
source§impl<S: OrderedStream> OrderedStream for Peekable<S>
impl<S: OrderedStream> OrderedStream for Peekable<S>
§type Ordering = <S as OrderedStream>::Ordering
type Ordering = <S as OrderedStream>::Ordering
The type ordered by this stream. Read more
§type Data = <S as OrderedStream>::Data
type Data = <S as OrderedStream>::Data
The unordered data carried by this stream Read more
source§fn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&S::Ordering>
) -> Poll<PollResult<S::Ordering, S::Data>>
fn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&S::Ordering>
) -> Poll<PollResult<S::Ordering, S::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 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