Struct ordered_stream::FromStreamDirect [−][src]
pub struct FromStreamDirect<S, F> { /* fields omitted */ }Expand description
An OrderedStream wrapper around a Stream.
This does not use any future or past knowledge of elements, and so is suitable if the
stream rarely or never blocks. Prefer using FromStream if you plan to filter or join
this stream and want other streams to be able to make progress while this one blocks.
Implementations
Create a new OrderedStream by applying a split_item closure to each element
produced by the original stream.
Trait Implementations
impl<S, F, Ordering, Data> FusedOrderedStream for FromStreamDirect<S, F> where
S: FusedStream,
F: FnMut(S::Item) -> (Ordering, Data),
Ordering: Ord,
impl<S, F, Ordering, Data> FusedOrderedStream for FromStreamDirect<S, F> where
S: FusedStream,
F: FnMut(S::Item) -> (Ordering, Data),
Ordering: Ord,
Returns true if the stream should no longer be polled.
impl<S, F, Ordering, Data> OrderedStream for FromStreamDirect<S, F> where
S: Stream,
F: FnMut(S::Item) -> (Ordering, Data),
Ordering: Ord,
impl<S, F, Ordering, Data> OrderedStream for FromStreamDirect<S, F> where
S: Stream,
F: FnMut(S::Item) -> (Ordering, Data),
Ordering: Ord,
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