class Lessor

Defined at line 5077 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h

Provides element-scoped access to request leases to raise the levels of an

element previously added via Topology.AddElement.

Public Methods

void ~Lessor ()
void Lease (uint8_t level, LeaseCallback callback)

Request made to indicate the client wants the element raised to the given

level. When the call returns this **does** **not** mean the

corresponding element is at the requested level, only that the requested

level is valid and request is being worked on.

Fulfilling the request will raise the level of all the level's direct

and transitive power dependencies to their required levels. When

`LeaseControl.WatchStatus` reports `LeaseStatus::SATISFIED` this means

given element is at the level specified by the lease.

Requesting an invalid level returns `LeaseError::INVALID_LEVEL`.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class Lessor_Stub