template <>

class WireWeakSyncClientImpl

Defined at line 998 of file fidling/gen/sdk/fidl/fuchsia.hardware.powersource/fuchsia.hardware.powersource/cpp/fidl/fuchsia.hardware.powersource/cpp/wire_messaging.h

Public Methods

::fidl::WireResult< ::fuchsia_hardware_powersource::Source::GetPowerInfo> GetPowerInfo ()

Get device info.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_powersource::Source::GetStateChangeEvent> GetStateChangeEvent ()

Get an event to receive state change notifications on. ZX_USER_SIGNAL_0 is

asserted when power info or battery info changes. ZX_USER_SIGNAL_0 is

reset when either `GetPowerInfo()` or `GetBatteryInfo()` is called.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_hardware_powersource::Source::GetBatteryInfo> GetBatteryInfo ()

Get battery info. Only supported if type == PowerType::BATTERY.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.