pub trait Scheduler: Args {
// Provided methods
fn settings(&self, _params: &mut Params<'_>) -> Result<()> { ... }
fn runtime(&self) -> u64 { ... }
fn capacity(&self) -> Capacity { ... }
fn stats(&self) -> Option<Stats> { ... }
fn attached(&self, attached: &Attached<'_>) { ... }
fn stopped(&self, name: &str, why: &str) { ... }
}Expand description
What a scheduler adds to the loader, on its options. Every method has a
default, so impl Scheduler for Opts {} is a scheduler with nothing
but the tunables its options name.
Provided Methods§
Sourcefn settings(&self, _params: &mut Params<'_>) -> Result<()>
fn settings(&self, _params: &mut Params<'_>) -> Result<()>
Set the tunables no option sets by its name, see main!.
Sourcefn runtime(&self) -> u64
fn runtime(&self) -> u64
What the scheduler asks of the runtime, a mask of
config::runtime’s bits.
Sourcefn stats(&self) -> Option<Stats>
fn stats(&self) -> Option<Stats>
The scheduler’s statistics, for --stats and --monitor. None: it
has no statistics.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".