pub struct MultiThreadedSpawner {}Trait Implementations§
Source§impl<ReturnValue, ExtraInput, Alloc, U> BatchSpawnable<ReturnValue, ExtraInput, Alloc, U> for MultiThreadedSpawnerwhere
ReturnValue: Send + 'static,
ExtraInput: Send + 'static,
Alloc: BrotliAlloc + Send + 'static,
U: Send + 'static + Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
impl<ReturnValue, ExtraInput, Alloc, U> BatchSpawnable<ReturnValue, ExtraInput, Alloc, U> for MultiThreadedSpawnerwhere
ReturnValue: Send + 'static,
ExtraInput: Send + 'static,
Alloc: BrotliAlloc + Send + 'static,
U: Send + 'static + Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
type JoinHandle = MultiThreadedJoinable<ReturnValue, BrotliEncoderThreadError>
type FinalJoinHandle = Arc<RwLock<U>>
fn make_spawner( &mut self, input: &mut Owned<U>, ) -> <MultiThreadedSpawner as BatchSpawnable<ReturnValue, ExtraInput, Alloc, U>>::FinalJoinHandle
fn spawn<F>( &mut self, input: &mut <MultiThreadedSpawner as BatchSpawnable<ReturnValue, ExtraInput, Alloc, U>>::FinalJoinHandle, work: &mut SendAlloc<ReturnValue, ExtraInput, Alloc, <MultiThreadedSpawner as BatchSpawnable<ReturnValue, ExtraInput, Alloc, U>>::JoinHandle>, index: usize, num_threads: usize, f: F, )
Source§impl<ReturnValue, ExtraInput, Alloc, U> BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U> for MultiThreadedSpawnerwhere
ReturnValue: Send + 'static,
ExtraInput: Send + 'static,
Alloc: BrotliAlloc + Send + 'static,
U: Send + 'static + Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
<Alloc as Allocator<u16>>::AllocatedMemory: Send + Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Send + Sync,
impl<ReturnValue, ExtraInput, Alloc, U> BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U> for MultiThreadedSpawnerwhere
ReturnValue: Send + 'static,
ExtraInput: Send + 'static,
Alloc: BrotliAlloc + Send + 'static,
U: Send + 'static + Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
<Alloc as Allocator<u16>>::AllocatedMemory: Send + Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Send + Sync,
type JoinHandle = <MultiThreadedSpawner as BatchSpawnable<ReturnValue, ExtraInput, Alloc, U>>::JoinHandle
type FinalJoinHandle = <MultiThreadedSpawner as BatchSpawnable<ReturnValue, ExtraInput, Alloc, U>>::FinalJoinHandle
fn make_spawner( &mut self, input: &mut Owned<U>, ) -> <MultiThreadedSpawner as BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U>>::FinalJoinHandle
fn spawn( &mut self, handle: &mut <MultiThreadedSpawner as BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U>>::FinalJoinHandle, alloc_per_thread: &mut SendAlloc<ReturnValue, ExtraInput, Alloc, <MultiThreadedSpawner as BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U>>::JoinHandle>, index: usize, num_threads: usize, f: fn(ExtraInput, usize, usize, &U, Alloc) -> ReturnValue, )
Source§impl Default for MultiThreadedSpawner
impl Default for MultiThreadedSpawner
Source§fn default() -> MultiThreadedSpawner
fn default() -> MultiThreadedSpawner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiThreadedSpawner
impl RefUnwindSafe for MultiThreadedSpawner
impl Send for MultiThreadedSpawner
impl Sync for MultiThreadedSpawner
impl Unpin for MultiThreadedSpawner
impl UnsafeUnpin for MultiThreadedSpawner
impl UnwindSafe for MultiThreadedSpawner
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