template <>

class WireServer

Defined at line 622 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_thermal::ClientStateWatcher>|

and |::fidl::ServerEnd

<

::fuchsia_thermal::ClientStateWatcher>|).

Public Methods

void Watch (WatchCompleter::Sync & completer)

Watches for changes to a client's thermal state.

A client's thermal state is determined according to the central thermal

configuration of its specific type. See the

[README.md](/src/power/power-manager/thermal_config/README.md) for more

details.

On a given connection, the first call will return immediately with the

client's current thermal state. Subsequent `Watch` requests will only

return a new `state` if the client's thermal state has changed. This

follows the [hanging

get](https://fuchsia.dev/fuchsia-src/concepts/api/fidl#hanging-get)

pattern.

- `state` is an unsigned integer representing the client's thermal

state.

void WireServer ()

Defined at line 625 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/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 626 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/wire_messaging.h