class LeaseSchema

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

Passed to Topology.Lease.

Public Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_power_broker::wire::LeaseSchema> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_power_broker::wire::LeaseSchema> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_broker::wire::LeaseSchema>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_broker::wire::LeaseSchema>> && frame_ptr)
void LeaseSchema ()

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

void LeaseSchema (const LeaseSchema & other)

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

void LeaseSchema (LeaseSchema && other)

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

void _CloseHandles ()
::zx::eventpair & lease_token ()

The half of an eventpair to be held by the Power Broker. The other

half of the pair should be retained by the client. See `LeaseToken`

below for more usage details.

bool has_lease_token ()
::fidl::StringView & lease_name ()

Human-readable name for logging and debug purposes.

bool has_lease_name ()
::fidl::VectorView< ::fuchsia_power_broker::wire::LeaseDependency> & dependencies ()

List of dependencies for this lease.

bool has_dependencies ()
bool & should_return_pending_lease ()

(Optional) By default, `Topology.Lease` will wait until the lease is

`SATISFIED` before returning. If `should_return_pending_lease` is true,

it will instead return as soon as the lease has been granted by Power

Broker but it may still be `PENDING`. Clients can listen for

`LEASE_SIGNAL_SATISFIED` to know when the lease has been `SATISFIED`.

bool has_should_return_pending_lease ()
LeaseSchema & set_lease_token (::zx::eventpair elem)
LeaseSchema & clear_lease_token ()
LeaseSchema & operator= (const LeaseSchema & other)

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

LeaseSchema & set_lease_name (::fidl::ObjectView< ::fidl::StringView> elem)
LeaseSchema & set_lease_name (std::nullptr_t )
LeaseSchema & clear_lease_name ()
LeaseSchema & set_dependencies (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_power_broker::wire::LeaseDependency>> elem)
LeaseSchema & set_dependencies (std::nullptr_t )
LeaseSchema & clear_dependencies ()
LeaseSchema & set_should_return_pending_lease (bool elem)
LeaseSchema & clear_should_return_pending_lease ()
void LeaseSchema (::fidl::AnyArena & allocator)
void LeaseSchema (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_broker::wire::LeaseSchema>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

LeaseSchema & operator= (LeaseSchema && other)

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

void ~LeaseSchema ()

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder