pub trait PressureSource: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn sample(&self) -> Pressure;
// Provided methods
fn weight(&self) -> f64 { ... }
fn is_hard(&self) -> bool { ... }
}Available on crate feature
governor only.Expand description
A source of normalised pressure feeding the unified governor.
Implementors are wrappers over the real signal (memory guard, and
later CPU, queue depth, etc.). Keeping the trait here – not in the
signal’s own module – keeps memory a leaf with no governor
dependency.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".