pub struct EffectQueueConfig {
pub enabled: bool,
pub backend: TaskExecutorBackend,
pub scheduler: SchedulerConfig,
pub max_queue_depth: usize,
/* private fields */
}Fields§
§enabled: boolWhether effect queue scheduling is enabled.
This legacy convenience flag is kept in sync with backend. New code
should prefer backend for executor selection.
backend: TaskExecutorBackendWhich task executor backend to use for Cmd::Task.
scheduler: SchedulerConfigScheduler configuration (Smith’s rule by default).
max_queue_depth: usizeMaximum queue depth before backpressure kicks in (bd-2zd0a).
When the queue depth exceeds this limit, new tasks are dropped with
a tracing::warn! and the effects_queue_dropped counter increments.
A value of 0 means unbounded (no backpressure).
Implementations§
Source§impl EffectQueueConfig
impl EffectQueueConfig
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Enable effect queue scheduling with the provided scheduler config.
Sourcepub fn with_backend(self, backend: TaskExecutorBackend) -> Self
pub fn with_backend(self, backend: TaskExecutorBackend) -> Self
Select the task executor backend for Cmd::Task.
Sourcepub fn with_scheduler(self, scheduler: SchedulerConfig) -> Self
pub fn with_scheduler(self, scheduler: SchedulerConfig) -> Self
Override the scheduler configuration.
Sourcepub fn with_max_queue_depth(self, depth: usize) -> Self
pub fn with_max_queue_depth(self, depth: usize) -> Self
Set the maximum queue depth for backpressure (bd-2zd0a).
When the queue depth exceeds this limit, new tasks are dropped.
A value of 0 means unbounded (no backpressure, the default).
Trait Implementations§
Source§impl Clone for EffectQueueConfig
impl Clone for EffectQueueConfig
Source§fn clone(&self) -> EffectQueueConfig
fn clone(&self) -> EffectQueueConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more