class ElementDescBuilder

Defined at line 35 of file ../../sdk/lib/driver/power/cpp/element-description-builder.h

Public Methods

ElementDesc Build ()

Build an `ElementDesc` object based on the information we've been given.

If the assertive token is not set, a `zx::event` object will be created.

If the lessor channel is not set, it is created. The `fidl::ClientEnd` of this channel is

placed in the `lessor_client_` field of the `ElementDesc` object returned.

Similarly, if element runner is not set, the channels will be created and placed in the

`element_runner_` field.

Defined at line 13 of file ../../sdk/lib/driver/power/cpp/element-description-builder.cc

void ElementDescBuilder (PowerElementConfiguration config, TokenMap tokens)

Defined at line 37 of file ../../sdk/lib/driver/power/cpp/element-description-builder.h

ElementDescBuilder & SetAssertiveToken (const zx::unowned_event & assertive_token)

Sets the assertive token to associate with this element by duplicating

the token passed in.

Defined at line 58 of file ../../sdk/lib/driver/power/cpp/element-description-builder.cc

ElementDescBuilder & SetLessor (fidl::ServerEnd<fuchsia_power_broker::Lessor> lessor)

Sets the channel to use for the Lessor protocol.

Defined at line 66 of file ../../sdk/lib/driver/power/cpp/element-description-builder.cc

ElementDescBuilder & SetElementControl (fidl::ServerEnd<fuchsia_power_broker::ElementControl> element_control)

Sets the channel to use for the ElementControl protocol.

Defined at line 72 of file ../../sdk/lib/driver/power/cpp/element-description-builder.cc

ElementDescBuilder & SetElementRunner (fidl::ClientEnd<fuchsia_power_broker::ElementRunner> element_runner)

Sets the channel to use for the ElementRunner protocol.

Defined at line 78 of file ../../sdk/lib/driver/power/cpp/element-description-builder.cc