pub struct ExecutorConfig {
pub rayon_threads: usize,
pub max_lm_concurrency: usize,
pub buffer_pool_size: usize,
pub buffer_capacity: usize,
}Expand description
Configuration for the hybrid executor.
Fields§
§rayon_threads: usizeNumber of Rayon threads (0 = auto)
max_lm_concurrency: usizeMaximum concurrent LM API calls
buffer_pool_size: usizeBuffer pool size
buffer_capacity: usizeBuffer capacity (bytes)
Implementations§
Source§impl ExecutorConfig
impl ExecutorConfig
Sourcepub fn rayon_threads(self, threads: usize) -> Self
pub fn rayon_threads(self, threads: usize) -> Self
Set Rayon thread count.
Sourcepub fn max_lm_concurrency(self, max: usize) -> Self
pub fn max_lm_concurrency(self, max: usize) -> Self
Set maximum LM concurrency.
Sourcepub fn buffer_pool_size(self, size: usize) -> Self
pub fn buffer_pool_size(self, size: usize) -> Self
Set buffer pool size.
Sourcepub fn buffer_capacity(self, capacity: usize) -> Self
pub fn buffer_capacity(self, capacity: usize) -> Self
Set buffer capacity (bytes per buffer).
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
Source§fn clone(&self) -> ExecutorConfig
fn clone(&self) -> ExecutorConfig
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 ExecutorConfig
impl Debug for ExecutorConfig
Auto Trait Implementations§
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more