Skip to main content

build_capabilities_with

Function build_capabilities_with 

Source
pub fn build_capabilities_with(
    cfg: &Config,
    engine: &dyn Engine,
    auto_enabled: bool,
) -> WorkerCapabilities
Expand description

Same as build_capabilities but lets the caller drive auto_enabled from a runtime pause flag (the UI’s Pause/Resume button). The persisted Config no longer carries that bit — it’s an in-process toggle.