template <>

class Server

Defined at line 316 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/natural_messaging.h

Public Methods

void Server ()

Defined at line 319 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/natural_messaging.h

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.

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 ~Server ()

Defined at line 320 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/natural_messaging.h