pub struct DynParallelMapper<Input, Output>{ /* private fields */ }Implementations§
Source§impl<Input, Output> DynParallelMapper<Input, Output>
impl<Input, Output> DynParallelMapper<Input, Output>
pub fn new( max_workers: u32, map: Box<dyn Fn(Input) -> Output + Send + Sync>, ) -> Self
pub fn concurrency(&self) -> u32
pub fn process_all<I>(&mut self, inputs: I) -> Vec<Output>
pub fn push(&mut self, input: Input)
pub fn pop(&mut self) -> Option<Output>
pub fn pop_all(&mut self) -> Vec<Output>
pub fn wait(&self)
pub fn finish(&mut self) -> Vec<Output>
Auto Trait Implementations§
impl<Input, Output> Freeze for DynParallelMapper<Input, Output>
impl<Input, Output> !RefUnwindSafe for DynParallelMapper<Input, Output>
impl<Input, Output> Send for DynParallelMapper<Input, Output>
impl<Input, Output> Sync for DynParallelMapper<Input, Output>
impl<Input, Output> Unpin for DynParallelMapper<Input, Output>
impl<Input, Output> UnsafeUnpin for DynParallelMapper<Input, Output>
impl<Input, Output> !UnwindSafe for DynParallelMapper<Input, Output>
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