class ElementRunner
Defined at line 4841 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
The runner or operator of an element.
This should be implemented by all element owners.
The client end is passed to Power Broker via ElementSchema.element_runner.
Power Broker calls SetLevel initially, and then whenever the required level
of the element changes.
Public Members
static const char[] Name_
Public Methods
void ~ElementRunner ()
void SetLevel (uint8_t level, SetLevelCallback callback)
Sets the level of the power element.
The server blocks while making the level transition. It returns
once the transition to the new required level is complete.
If the element cannot transition to the new required level and
it cannot retry, the channel will be closed.
Protected Methods
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Friends
class ElementRunner_Stub