template <>

class WireServer

Defined at line 435 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_power_battery::BatteryInfoProvider>|

and |::fidl::ServerEnd

<

::fuchsia_power_battery::BatteryInfoProvider>|).

Public Methods

void GetBatteryInfo (GetBatteryInfoCompleter::Sync & completer)

Gets battery info.

void Watch (::fuchsia_power_battery::wire::BatteryInfoProviderWatchRequest * request, WatchCompleter::Sync & completer)

Registers a watcher for battery info changes.

Will receive an `OnChangeBatteryInfo` call with intial values upon registration.

void WireServer ()

Defined at line 438 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/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 439 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/wire_messaging.h