class LeaseSchema
Defined at line 1204 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
Passed to Topology.Lease.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const ::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.
Defined at line 1213 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
bool has_lease_token ()
Defined at line 1217 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
::zx::eventpair * mutable_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.
Defined at line 1224 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
void clear_lease_token ()
Defined at line 1232 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
const ::std::string & lease_name ()
Human-readable name for logging and debug purposes.
Defined at line 1241 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
bool has_lease_name ()
Defined at line 1245 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
::std::string * mutable_lease_name ()
Human-readable name for logging and debug purposes.
Defined at line 1250 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
void clear_lease_name ()
Defined at line 1258 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
const ::std::vector< ::fuchsia::power::broker::LeaseDependency> & dependencies ()
List of dependencies for this lease.
Defined at line 1267 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
bool has_dependencies ()
Defined at line 1271 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
::std::vector< ::fuchsia::power::broker::LeaseDependency> * mutable_dependencies ()
List of dependencies for this lease.
Defined at line 1276 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
void clear_dependencies ()
Defined at line 1284 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
bool has_should_return_pending_lease ()
Defined at line 1301 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
bool * mutable_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`.
Defined at line 1310 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
void clear_should_return_pending_lease ()
Defined at line 1318 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
LeaseSchema & set_lease_token (::zx::eventpair _value)
LeaseSchema & set_lease_name (::std::string _value)
LeaseSchema & set_dependencies (::std::vector< ::fuchsia::power::broker::LeaseDependency> _value)
LeaseSchema & set_should_return_pending_lease (bool _value)
void LeaseSchema ()
void LeaseSchema (LeaseSchema && other)
const 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`.
Defined at line 1297 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/hlcpp/fuchsia/power/broker/cpp/fidl.h
void ~LeaseSchema ()
LeaseSchema & operator= (LeaseSchema && other)
::std::unique_ptr<LeaseSchema> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, LeaseSchema * _value, size_t _offset)
zx_status_t Clone (LeaseSchema * _result)