pub struct Multiplex<In, Out, Entry>where
Entry: PipelineEntry<In, Out> + Send,{ /* private fields */ }
Expand description
A meta pipeline entry that distributes the work of a PipelineEntry
across multiple threads
Implementations§
Source§impl<In, Out, Entry> Multiplex<In, Out, Entry>
Build a Multiplex
by copying an existing PipelineEntry
impl<In, Out, Entry> Multiplex<In, Out, Entry>
Build a Multiplex
by copying an existing PipelineEntry
Note: this is only applicable where the PipelineEntry
implements Copy,
which due to Rust #28229
is not true of closures
Trait Implementations§
Source§impl<In, Out, Entry> PipelineEntry<In, Out> for Multiplex<In, Out, Entry>
impl<In, Out, Entry> PipelineEntry<In, Out> for Multiplex<In, Out, Entry>
fn process<I: IntoIterator<Item = In>>(self, tx: Sender<Out>, rx: I)
Auto Trait Implementations§
impl<In, Out, Entry> Freeze for Multiplex<In, Out, Entry>
impl<In, Out, Entry> RefUnwindSafe for Multiplex<In, Out, Entry>
impl<In, Out, Entry> Send for Multiplex<In, Out, Entry>
impl<In, Out, Entry> Sync for Multiplex<In, Out, Entry>
impl<In, Out, Entry> Unpin for Multiplex<In, Out, Entry>
impl<In, Out, Entry> UnwindSafe for Multiplex<In, Out, Entry>
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