template <>
class WireServer
Defined at line 788 of file fidling/gen/sdk/fidl/fuchsia.hardware.powersource/fuchsia.hardware.powersource/cpp/fidl/fuchsia.hardware.powersource/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_powersource::Source>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_powersource::Source>|).
Public Methods
void GetPowerInfo (GetPowerInfoCompleter::Sync & completer)
Get device info.
void GetStateChangeEvent (GetStateChangeEventCompleter::Sync & completer)
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.
void GetBatteryInfo (GetBatteryInfoCompleter::Sync & completer)
Get battery info. Only supported if type == PowerType::BATTERY.
void WireServer ()
Defined at line 791 of file fidling/gen/sdk/fidl/fuchsia.hardware.powersource/fuchsia.hardware.powersource/cpp/fidl/fuchsia.hardware.powersource/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 792 of file fidling/gen/sdk/fidl/fuchsia.hardware.powersource/fuchsia.hardware.powersource/cpp/fidl/fuchsia.hardware.powersource/cpp/wire_messaging.h