pub struct Config {
pub thread_count: Option<NonZero<usize>>,
pub heartbeat_interval: Duration,
}Expand description
ThreadPool configuration.
Fields§
§thread_count: Option<NonZero<usize>>The number of threads or None to use
std::thread::available_parallelism.
heartbeat_interval: DurationThe interval between heartbeats on any particular thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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