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