#[non_exhaustive]pub struct SchedulerOptions {
pub threads: usize,
pub cache_budget: usize,
pub batch_tiles: usize,
pub plan: PlanOptions,
}Expand description
Tuning for a Scheduler.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threads: usizeWorker threads. Zero means ThreadPool::default_threads.
cache_budget: usizeByte budget for the shared tile cache.
batch_tiles: usizeOutput tiles evaluated concurrently.
This is the memory/parallelism dial: peak usage scales with it, and so does available concurrency. Zero means “one per worker thread”.
plan: PlanOptionsTile shape negotiation options.
Implementations§
Source§impl SchedulerOptions
impl SchedulerOptions
Sourcepub const fn with_threads(self, threads: usize) -> SchedulerOptions
pub const fn with_threads(self, threads: usize) -> SchedulerOptions
Set the worker thread count; zero means one per core.
SchedulerOptions is #[non_exhaustive], so downstream crates cannot
use a struct literal; these setters are the only way to configure it.
Sourcepub const fn with_cache_budget(self, bytes: usize) -> SchedulerOptions
pub const fn with_cache_budget(self, bytes: usize) -> SchedulerOptions
Set the tile cache byte budget.
Sourcepub const fn with_batch_tiles(self, tiles: usize) -> SchedulerOptions
pub const fn with_batch_tiles(self, tiles: usize) -> SchedulerOptions
Set how many output tiles are evaluated concurrently.
Sourcepub const fn with_plan(self, plan: PlanOptions) -> SchedulerOptions
pub const fn with_plan(self, plan: PlanOptions) -> SchedulerOptions
Set the tile shape negotiation options.
Trait Implementations§
Source§impl Clone for SchedulerOptions
impl Clone for SchedulerOptions
Source§fn clone(&self) -> SchedulerOptions
fn clone(&self) -> SchedulerOptions
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 moreimpl Copy for SchedulerOptions
Source§impl Debug for SchedulerOptions
impl Debug for SchedulerOptions
Source§impl Default for SchedulerOptions
impl Default for SchedulerOptions
Source§fn default() -> SchedulerOptions
fn default() -> SchedulerOptions
Returns the “default value” for a type. Read more
impl Eq for SchedulerOptions
Source§impl PartialEq for SchedulerOptions
impl PartialEq for SchedulerOptions
impl StructuralPartialEq for SchedulerOptions
Auto Trait Implementations§
impl Freeze for SchedulerOptions
impl RefUnwindSafe for SchedulerOptions
impl Send for SchedulerOptions
impl Sync for SchedulerOptions
impl Unpin for SchedulerOptions
impl UnsafeUnpin for SchedulerOptions
impl UnwindSafe for SchedulerOptions
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