Struct brotli::enc::multithreading::MultiThreadedSpawner
source · pub struct MultiThreadedSpawner {}
Trait Implementations
sourceimpl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnable<T, Alloc, U> for MultiThreadedSpawnerwhere
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
impl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnable<T, Alloc, U> for MultiThreadedSpawnerwhere
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
type JoinHandle = MultiThreadedJoinable<T, BrotliEncoderThreadError>
type FinalJoinHandle = Arc<RwLock<U>>
fn batch_spawn<F: Fn(usize, usize, &U, Alloc) -> T + Send + 'static + Copy>(
&mut self,
input: &mut Owned<U>,
alloc_per_thread: &mut [SendAlloc<T, Alloc, Self::JoinHandle>],
f: F
) -> Self::FinalJoinHandle
sourceimpl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnableLite<T, Alloc, U> for MultiThreadedSpawnerwhere
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
impl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnableLite<T, Alloc, U> for MultiThreadedSpawnerwhere
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
type JoinHandle = <MultiThreadedSpawner as BatchSpawnable<T, Alloc, U>>::JoinHandle
type FinalJoinHandle = <MultiThreadedSpawner as BatchSpawnable<T, Alloc, U>>::FinalJoinHandle
fn batch_spawn(
&mut self,
input: &mut Owned<U>,
alloc_per_thread: &mut [SendAlloc<T, Alloc, Self::JoinHandle>],
f: fn(_: usize, _: usize, _: &U, _: Alloc) -> T
) -> Self::FinalJoinHandle
sourceimpl Default for MultiThreadedSpawner
impl Default for MultiThreadedSpawner
sourcefn default() -> MultiThreadedSpawner
fn default() -> MultiThreadedSpawner
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MultiThreadedSpawner
impl Send for MultiThreadedSpawner
impl Sync for MultiThreadedSpawner
impl Unpin for MultiThreadedSpawner
impl UnwindSafe for MultiThreadedSpawner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more