[][src]Struct brotli::enc::worker_pool::WorkerPool

pub struct WorkerPool<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> { /* fields omitted */ }

Methods

impl<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> WorkerPool<ReturnValue, ExtraInput, Alloc, U>[src]

pub fn new(num_threads: usize) -> Self[src]

Trait Implementations

impl<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U> for WorkerPool<ReturnValue, ExtraInput, Alloc, U> where
    <Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,
    <Alloc as Allocator<u16>>::AllocatedMemory: Send + Sync,
    <Alloc as Allocator<u32>>::AllocatedMemory: Send + Sync
[src]

type FinalJoinHandle = Arc<RwLock<U>>

type JoinHandle = WorkerJoinable<ReturnValue, ExtraInput, Alloc, U>

impl<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> Drop for WorkerPool<ReturnValue, ExtraInput, Alloc, U>[src]

Auto Trait Implementations

impl<ReturnValue, ExtraInput, Alloc, U> !RefUnwindSafe for WorkerPool<ReturnValue, ExtraInput, Alloc, U>

impl<ReturnValue, ExtraInput, Alloc, U> Send for WorkerPool<ReturnValue, ExtraInput, Alloc, U>

impl<ReturnValue, ExtraInput, Alloc, U> Sync for WorkerPool<ReturnValue, ExtraInput, Alloc, U>

impl<ReturnValue, ExtraInput, Alloc, U> Unpin for WorkerPool<ReturnValue, ExtraInput, Alloc, U>

impl<ReturnValue, ExtraInput, Alloc, U> !UnwindSafe for WorkerPool<ReturnValue, ExtraInput, Alloc, U>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.