Struct WorkerPoolConfig
pub struct WorkerPoolConfig { /* private fields */ }Expand description
Per-core worker pool configuration.
Implementations§
§impl WorkerPoolConfig
impl WorkerPoolConfig
pub const fn new(worker_threads: usize) -> WorkerPoolConfig
pub const fn new(worker_threads: usize) -> WorkerPoolConfig
Creates worker pool config. Zero becomes one worker.
pub const fn worker_threads(self) -> usize
pub const fn worker_threads(self) -> usize
Returns configured worker count.
Trait Implementations§
§impl Clone for WorkerPoolConfig
impl Clone for WorkerPoolConfig
§fn clone(&self) -> WorkerPoolConfig
fn clone(&self) -> WorkerPoolConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for WorkerPoolConfig
impl Debug for WorkerPoolConfig
§impl PartialEq for WorkerPoolConfig
impl PartialEq for WorkerPoolConfig
impl Copy for WorkerPoolConfig
impl Eq for WorkerPoolConfig
impl StructuralPartialEq for WorkerPoolConfig
Auto Trait Implementations§
impl Freeze for WorkerPoolConfig
impl RefUnwindSafe for WorkerPoolConfig
impl Send for WorkerPoolConfig
impl Sync for WorkerPoolConfig
impl Unpin for WorkerPoolConfig
impl UnsafeUnpin for WorkerPoolConfig
impl UnwindSafe for WorkerPoolConfig
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