class LevelDependency
Defined at line 142 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_types.h
Describes a dependency from one power element's level on another power
element's level.
For example if element `PowerElement_A` has a level `PowerLevel_A3` which
depends on an element `PowerElement_B` being at `PowerLevel_B2` then we would
fill out the struct to convey the meaning:
- `dependent_level` = `PowerLevel_A3`
- `requires_token` = `PowerElement_B`
- `requires_level_by_preference` = `[PowerLevel_B2]`
(Note the values above are only *symbolic*, eg. `dependent_level` requires
an integer value, not a string.)
The dependent Element's identity is not specified in this struct and must
be specified as a separate argument in a request or be inferred, perhaps
because a channel is scoped to the dependent element.
Public Methods
void LevelDependency (Storage_ storage)
bool IsEmpty ()
void LevelDependency ()
Defined at line 147 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_types.h
void LevelDependency (LevelDependency && )
Defined at line 148 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_types.h
const std::optional<uint8_t> & dependent_level ()
The power element level that this `LevelDependency` struct declaration
supports. This is level that has a dependency on
`requires_level_by_preference`.
::std::optional<uint8_t> & dependent_level ()
The power element level that this `LevelDependency` struct declaration
supports. This is level that has a dependency on
`requires_level_by_preference`.
LevelDependency & dependent_level (std::optional<uint8_t> value)
The power element level that this `LevelDependency` struct declaration
supports. This is level that has a dependency on
`requires_level_by_preference`.
LevelDependency & operator= (LevelDependency && )
Defined at line 149 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_types.h
const std::optional< ::zx::event> & requires_token ()
Must supply a token registered via the RegisterDependencyToken call of
the required element's ElementControl protocol.
::std::optional< ::zx::event> & requires_token ()
Must supply a token registered via the RegisterDependencyToken call of
the required element's ElementControl protocol.
LevelDependency & requires_token (std::optional< ::zx::event> value)
Must supply a token registered via the RegisterDependencyToken call of
the required element's ElementControl protocol.
const std::optional< ::std::vector<uint8_t>> & requires_level_by_preference ()
A list of levels in decreasing preferential order that power broker
should attempt to make required for this dependency to be satisfied.
The first level in list that is a valid level will become the required
level.
Platform clients can use this list to keep backwards compatibility with
dependencies by providing multiple levels that the dependency may have
implemented in older API levels.
::std::optional< ::std::vector<uint8_t>> & requires_level_by_preference ()
A list of levels in decreasing preferential order that power broker
should attempt to make required for this dependency to be satisfied.
The first level in list that is a valid level will become the required
level.
Platform clients can use this list to keep backwards compatibility with
dependencies by providing multiple levels that the dependency may have
implemented in older API levels.
LevelDependency & requires_level_by_preference (std::optional< ::std::vector<uint8_t>> value)
A list of levels in decreasing preferential order that power broker
should attempt to make required for this dependency to be satisfied.
The first level in list that is a valid level will become the required
level.
Platform clients can use this list to keep backwards compatibility with
dependencies by providing multiple levels that the dependency may have
implemented in older API levels.
const std::optional<bool> & remove_with_required_element ()
If true, this dependency will be automatically removed if/when the
required element is removed.
::std::optional<bool> & remove_with_required_element ()
If true, this dependency will be automatically removed if/when the
required element is removed.
LevelDependency & remove_with_required_element (std::optional<bool> value)
If true, this dependency will be automatically removed if/when the
required element is removed.
void LevelDependency (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits