Crate power_broker_client

Source

Structs§

Lease
LeaseDependency
A dependency for a lease. It is equivalent to an fbroker::LevelDependency with the dependent fields omitted.
LeaseHelper
Helper for acquiring leases. Instantiate with LeaseControl::new(), and then acquire a lease with the lease() method. The lease() call will return only once the lease is satisfied.
PowerElementContext
PowerElementContextBuilder

Constants§

BINARY_POWER_LEVELS
A well-known set of PowerLevels to be specified as the valid_levels for a power element. This is the set of levels in fbroker::BinaryPowerLevel.

Functions§

basic_update_fn_factory
Creates an update function for run_power_element that only updates `power_element``.
run_power_element
Runs a procedure that calls an update function when the required power level changes.