pub struct ProcessorPoolConfig {
pub workers: usize,
pub channel_capacity: usize,
pub worker_timeout: Duration,
}Expand description
Configuration for the processor pool
Fields§
§workers: usizeThe number of worker tasks to create
channel_capacity: usizeThe capacity of the message channel
worker_timeout: DurationThe maximum duration to wait for a worker to process a message
Trait Implementations§
Source§impl Clone for ProcessorPoolConfig
impl Clone for ProcessorPoolConfig
Source§fn clone(&self) -> ProcessorPoolConfig
fn clone(&self) -> ProcessorPoolConfig
Returns a copy 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 ProcessorPoolConfig
impl Debug for ProcessorPoolConfig
Auto Trait Implementations§
impl Freeze for ProcessorPoolConfig
impl RefUnwindSafe for ProcessorPoolConfig
impl Send for ProcessorPoolConfig
impl Sync for ProcessorPoolConfig
impl Unpin for ProcessorPoolConfig
impl UnwindSafe for ProcessorPoolConfig
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