pub struct ResolveFutures<Psh, Queue, QueueInner> { /* private fields */ }Expand description
Push operator that receives futures, queues them, and pushes their resolved outputs downstream.
Queue is expected to be either [futures_util::stream::FuturesOrdered] or [futures_util::stream::FuturesUnordered]
(or a mutable reference thereof).
Trait Implementations§
Source§impl<Psh, Queue, QueueInner, Fut> Push<Fut, ()> for ResolveFutures<Psh, Queue, QueueInner>
impl<Psh, Queue, QueueInner, Fut> Push<Fut, ()> for ResolveFutures<Psh, Queue, QueueInner>
Source§type CanPend = Yes
type CanPend = Yes
Whether this push can return
PushStep::Pending.Source§fn poll_ready(
self: Pin<&mut Self>,
ctx: &mut Self::Ctx<'_>,
) -> PushStep<Self::CanPend>
fn poll_ready( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>
Check if this push is ready to accept an item.
Source§fn start_send(self: Pin<&mut Self>, item: Fut, _meta: ())
fn start_send(self: Pin<&mut Self>, item: Fut, _meta: ())
Send an item into this push pipeline. Read more
impl<'__pin, Psh, Queue, QueueInner> Unpin for ResolveFutures<Psh, Queue, QueueInner>where
PinnedFieldsOf<__Origin<'__pin, Psh, Queue, QueueInner>>: Unpin,
Auto Trait Implementations§
impl<Psh, Queue, QueueInner> Freeze for ResolveFutures<Psh, Queue, QueueInner>
impl<Psh, Queue, QueueInner> RefUnwindSafe for ResolveFutures<Psh, Queue, QueueInner>
impl<Psh, Queue, QueueInner> Send for ResolveFutures<Psh, Queue, QueueInner>
impl<Psh, Queue, QueueInner> Sync for ResolveFutures<Psh, Queue, QueueInner>
impl<Psh, Queue, QueueInner> UnsafeUnpin for ResolveFutures<Psh, Queue, QueueInner>where
Psh: UnsafeUnpin,
Queue: UnsafeUnpin,
impl<Psh, Queue, QueueInner> UnwindSafe for ResolveFutures<Psh, Queue, QueueInner>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more