class LeaseControl

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

Provides lease-scoped access to actions that can be taken on a lease

previously acquired via Lessor.Lease. Closing this control channel drops

the lease.

TODO(https://fxbug.dev/339474151): Switch from a protocol to an eventpair.

Public Methods

void ~LeaseControl ()
void WatchStatus (::fuchsia::power::broker::LeaseStatus last_status, WatchStatusCallback callback)

Get the current status of the lease.

If last_status is UNKNOWN, the call will return immediately

with the current status. Otherwise, the call will block

until the current status differs from last_status.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class LeaseControl_Stub