pub struct SchedulerConfig {
pub batch_size: usize,
pub max_wait: Duration,
pub poll_interval: Duration,
pub context_length_bucket: u32,
}Expand description
Configuration for the pipeline scheduler.
Fields§
§batch_size: usizeMaximum number of work items per batch submission.
max_wait: DurationMaximum time a work item can wait before being force-scheduled.
poll_interval: DurationPoll interval when waiting for batch results.
context_length_bucket: u32Context length bucket size for Ollama grouping (in tokens). Items within the same bucket are considered similar enough.
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchedulerConfig
impl Debug for SchedulerConfig
Auto Trait Implementations§
impl Freeze for SchedulerConfig
impl RefUnwindSafe for SchedulerConfig
impl Send for SchedulerConfig
impl Sync for SchedulerConfig
impl Unpin for SchedulerConfig
impl UnsafeUnpin for SchedulerConfig
impl UnwindSafe for SchedulerConfig
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