Skip to main content

RuntimeParallelService

Trait RuntimeParallelService 

Source
pub trait RuntimeParallelService {
    // Required method
    fn supports(&self, capability: ParallelCapability) -> bool;

    // Provided method
    fn placement_resources(&self) -> RuntimeParallelResources { ... }
}

Required Methods§

Source

fn supports(&self, capability: ParallelCapability) -> bool

Provided Methods§

Source

fn placement_resources(&self) -> RuntimeParallelResources

Side-effect-free scheduler capacity for placement admission. A future RM-1067 pool/scheduler adapter overrides this with its current lease; absence preserves the single-core local runtime budget.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§