pub struct ThreadPoolConfig { /* private fields */ }
Expand description
Thread pool configuration
Implementations§
Source§impl ThreadPoolConfig
impl ThreadPoolConfig
Sourcepub fn keep_alive(self, keep_alive: u64) -> Self
pub fn keep_alive(self, keep_alive: u64) -> Self
Sourcepub fn min_workers(self, min_workers: NonZeroU16) -> Self
pub fn min_workers(self, min_workers: NonZeroU16) -> Self
Sourcepub fn max_workers(self, max_workers: NonZeroU16) -> Self
pub fn max_workers(self, max_workers: NonZeroU16) -> Self
Sourcepub fn min_available_workers(self, min_available_workers: NonZeroU16) -> Self
pub fn min_available_workers(self, min_available_workers: NonZeroU16) -> Self
Sourcepub fn max_available_workers(self, max_available_workers: NonZeroU16) -> Self
pub fn max_available_workers(self, max_available_workers: NonZeroU16) -> Self
Sourcepub fn queue_size(self, queue_size: Option<usize>) -> Self
pub fn queue_size(self, queue_size: Option<usize>) -> Self
Trait Implementations§
Source§impl Clone for ThreadPoolConfig
impl Clone for ThreadPoolConfig
Source§fn clone(&self) -> ThreadPoolConfig
fn clone(&self) -> ThreadPoolConfig
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 moreSource§impl Debug for ThreadPoolConfig
impl Debug for ThreadPoolConfig
Source§impl Default for ThreadPoolConfig
impl Default for ThreadPoolConfig
impl Copy for ThreadPoolConfig
Auto Trait Implementations§
impl Freeze for ThreadPoolConfig
impl RefUnwindSafe for ThreadPoolConfig
impl Send for ThreadPoolConfig
impl Sync for ThreadPoolConfig
impl Unpin for ThreadPoolConfig
impl UnwindSafe for ThreadPoolConfig
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