Struct brotli::enc::worker_pool::WorkerPool
source · pub struct WorkerPool<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> { /* private fields */ }
Implementations
sourceimpl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> WorkerPool<T, Alloc, U>
impl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> WorkerPool<T, Alloc, U>
Trait Implementations
sourceimpl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnableLite<T, Alloc, U> for WorkerPool<T, Alloc, U>where
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
impl<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnableLite<T, Alloc, U> for WorkerPool<T, Alloc, U>where
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
type FinalJoinHandle = Arc<RwLock<U>>
type JoinHandle = WorkerJoinable<T, Alloc, U>
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
Auto Trait Implementations
impl<T, Alloc, U> !RefUnwindSafe for WorkerPool<T, Alloc, U>
impl<T, Alloc, U> Send for WorkerPool<T, Alloc, U>
impl<T, Alloc, U> Sync for WorkerPool<T, Alloc, U>
impl<T, Alloc, U> Unpin for WorkerPool<T, Alloc, U>
impl<T, Alloc, U> !UnwindSafe for WorkerPool<T, Alloc, U>
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