Struct ordered_stream::JoinMultiple
source · [−]pub struct JoinMultiple<C>(pub C);
Expand description
Join a collection of OrderedStream
s.
This is similar to repeatedly using join()
on all the streams in the contained collection.
It is not optimized to avoid polling streams that are not ready, so it works best if the number
of streams is relatively small.
Tuple Fields
0: C
Trait Implementations
sourceimpl<C: Clone> Clone for JoinMultiple<C>
impl<C: Clone> Clone for JoinMultiple<C>
sourcefn clone(&self) -> JoinMultiple<C>
fn clone(&self) -> JoinMultiple<C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<C: Debug> Debug for JoinMultiple<C>
impl<C: Debug> Debug for JoinMultiple<C>
sourceimpl<C: Default> Default for JoinMultiple<C>
impl<C: Default> Default for JoinMultiple<C>
sourcefn default() -> JoinMultiple<C>
fn default() -> JoinMultiple<C>
Returns the “default value” for a type. Read more
sourceimpl<C, S> OrderedStream for JoinMultiple<C> where
for<'a> &'a mut C: IntoIterator<Item = &'a mut Peekable<S>>,
S: OrderedStream + Unpin,
impl<C, S> OrderedStream for JoinMultiple<C> where
for<'a> &'a mut C: IntoIterator<Item = &'a mut Peekable<S>>,
S: OrderedStream + Unpin,
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
sourcefn 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 more
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<C> Unpin for JoinMultiple<C>
Auto Trait Implementations
impl<C> RefUnwindSafe for JoinMultiple<C> where
C: RefUnwindSafe,
impl<C> Send for JoinMultiple<C> where
C: Send,
impl<C> Sync for JoinMultiple<C> where
C: Sync,
impl<C> UnwindSafe for JoinMultiple<C> where
C: 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