pub struct ParserConfig {
pub worker_count: usize,
pub queue_capacity: usize,
}Expand description
Configuration for the parser workers.
This struct holds settings specific to the response parsing subsystem.
Fields§
§worker_count: usizeThe number of parser worker tasks to spawn.
queue_capacity: usizeThe capacity of the internal parse queue per worker.
Implementations§
Source§impl ParserConfig
impl ParserConfig
Sourcepub fn with_worker_count(self, count: usize) -> Self
pub fn with_worker_count(self, count: usize) -> Self
Sets the number of parser workers.
Sourcepub fn with_queue_capacity(self, capacity: usize) -> Self
pub fn with_queue_capacity(self, capacity: usize) -> Self
Sets the internal queue capacity per worker.
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
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 ParserConfig
impl Debug for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin for ParserConfig
impl UnwindSafe for ParserConfig
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