class WatchOptions
Defined at line 289 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_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
void WatchOptions (Storage_ storage)
bool IsEmpty ()
void WatchOptions ()
Defined at line 295 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h
void WatchOptions (WatchOptions && )
Defined at line 296 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h
void WatchOptions (const WatchOptions & other)
const std::optional< ::fuchsia_hardware_power_battery::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`.
::std::optional< ::fuchsia_hardware_power_battery::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`.
WatchOptions & interest (std::optional< ::fuchsia_hardware_power_battery::Status> value)
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`.
WatchOptions & operator= (WatchOptions && )
Defined at line 297 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/natural_types.h
WatchOptions & operator= (const WatchOptions & other)
bool operator== (const WatchOptions & other)
bool operator!= (const WatchOptions & other)
const std::optional< ::fuchsia_hardware_power_battery::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.
::std::optional< ::fuchsia_hardware_power_battery::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.
WatchOptions & wake_on (std::optional< ::fuchsia_hardware_power_battery::Status> value)
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.
void WatchOptions (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits