Struct brotli::enc::worker_pool::JobRequest
source · struct JobRequest<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync> {
func: fn(_: ExtraInput, _: usize, _: usize, _: &U, _: Alloc) -> ReturnValue,
extra_input: ExtraInput,
index: usize,
thread_size: usize,
data: Arc<RwLock<U>>,
alloc: Alloc,
work_id: u64,
}
Fields§
§func: fn(_: ExtraInput, _: usize, _: usize, _: &U, _: Alloc) -> ReturnValue
§extra_input: ExtraInput
§index: usize
§thread_size: usize
§data: Arc<RwLock<U>>
§alloc: Alloc
§work_id: u64
Auto Trait Implementations§
impl<ReturnValue, ExtraInput, Alloc, U> Freeze for JobRequest<ReturnValue, ExtraInput, Alloc, U>
impl<ReturnValue, ExtraInput, Alloc, U> RefUnwindSafe for JobRequest<ReturnValue, ExtraInput, Alloc, U>where
ExtraInput: RefUnwindSafe,
Alloc: RefUnwindSafe,
impl<ReturnValue, ExtraInput, Alloc, U> Send for JobRequest<ReturnValue, ExtraInput, Alloc, U>
impl<ReturnValue, ExtraInput, Alloc, U> Sync for JobRequest<ReturnValue, ExtraInput, Alloc, U>
impl<ReturnValue, ExtraInput, Alloc, U> Unpin for JobRequest<ReturnValue, ExtraInput, Alloc, U>
impl<ReturnValue, ExtraInput, Alloc, U> UnwindSafe for JobRequest<ReturnValue, ExtraInput, Alloc, U>where
ExtraInput: UnwindSafe,
Alloc: UnwindSafe,
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