pub struct Fanout<Push0, Push1> { /* private fields */ }Expand description
Push combinator that clones each item and pushes to both downstream pushes.
This is the push equivalent of futures::sink::SinkExt::fanout.
Trait Implementations§
Source§impl<P0, P1, Item, Meta> Push<Item, Meta> for Fanout<P0, P1>
impl<P0, P1, Item, Meta> Push<Item, Meta> for Fanout<P0, P1>
Source§type Ctx<'ctx> = <<P0 as Push<Item, Meta>>::Ctx<'ctx> as Context<'ctx>>::Merged<<P1 as Push<Item, Meta>>::Ctx<'ctx>>
type Ctx<'ctx> = <<P0 as Push<Item, Meta>>::Ctx<'ctx> as Context<'ctx>>::Merged<<P1 as Push<Item, Meta>>::Ctx<'ctx>>
The context type required to push into this pipeline.
Source§type CanPend = <<P0 as Push<Item, Meta>>::CanPend as Toggle>::Or<<P1 as Push<Item, Meta>>::CanPend>
type CanPend = <<P0 as Push<Item, Meta>>::CanPend as Toggle>::Or<<P1 as Push<Item, Meta>>::CanPend>
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: Item, meta: Meta)
fn start_send(self: Pin<&mut Self>, item: Item, meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Push0, Push1> Unpin for Fanout<Push0, Push1>where
PinnedFieldsOf<__Origin<'__pin, Push0, Push1>>: Unpin,
Auto Trait Implementations§
impl<Push0, Push1> Freeze for Fanout<Push0, Push1>
impl<Push0, Push1> RefUnwindSafe for Fanout<Push0, Push1>where
Push0: RefUnwindSafe,
Push1: RefUnwindSafe,
impl<Push0, Push1> Send for Fanout<Push0, Push1>
impl<Push0, Push1> Sync for Fanout<Push0, Push1>
impl<Push0, Push1> UnsafeUnpin for Fanout<Push0, Push1>where
Push0: UnsafeUnpin,
Push1: UnsafeUnpin,
impl<Push0, Push1> UnwindSafe for Fanout<Push0, Push1>where
Push0: UnwindSafe,
Push1: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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