class WatchOptions

Defined at line 603 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

Configuration options for battery state watching.

Both fields are optional masks. In both `interest` and `wake_on`, the actual field values within

the `Status` table are ignored; only field presence (set vs. unset) determines the mask.

An absent mask means "use this field's default"; a present but empty mask means "no fields".

The two defaults differ because the safe choice differs: `interest` defaults to everything the

driver supports watching, so a client that never configures anything still makes progress,

while `wake_on` defaults to nothing, since waking the system is a cost a client must opt into.

Public Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_hardware_power_battery::wire::WatchOptions> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_hardware_power_battery::wire::WatchOptions> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_power_battery::wire::WatchOptions>> frame)

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

void WatchOptions ()

Defined at line 605 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

void WatchOptions (const WatchOptions & other)

Defined at line 606 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

::fuchsia_hardware_power_battery::wire::Status & interest ()

Fields the client wants to receive change notifications for.

Defaults to every field the driver supports watching, as reported by

`Spec.supported_options`. Pass an explicitly empty table to be notified only for the

fields named in `wake_on`.

bool has_interest ()
WatchOptions & operator= (const WatchOptions & other)

Defined at line 607 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

void WatchOptions (WatchOptions && other)

Defined at line 608 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

WatchOptions & operator= (WatchOptions && other)

Defined at line 609 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

::fuchsia_hardware_power_battery::wire::Status & wake_on ()

Fields that should actively wake the system from suspend.

Any field present in `wake_on` is implicitly included in `interest`.

Defaults to no fields: changes occurring during suspend are deferred until the next system

wakeup and do not wake the device.

bool has_wake_on ()
void ~WatchOptions ()

Defined at line 611 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder