template <>

class Server

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

Public Methods

void ListSensors (ListSensorsCompleter::Sync & completer)

Lists sensors that may be controlled and connected to by clients.

void Server ()

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

void SetTemperatureOverride (SetTemperatureOverrideRequest & request, SetTemperatureOverrideCompleter::Sync & completer)

Sets an override temperature for the sensor with `name`.

When an override temperature is set, internal thermal policies will

use the override temperature. Temperature values retrieved from

sensor connections vended by `Connect` will also receive the override

temperature.

This interaction does not affect the thermal sensor itself.

Clients who connect directly to the sensor without `Connect` will

receive the real sensor value.

If a sensor with the given `name` is not found,

`SetTemperatureOverrideError.SENSOR_NOT_FOUND` is returned.

void ClearTemperatureOverride (ClearTemperatureOverrideRequest & request, ClearTemperatureOverrideCompleter::Sync & completer)

Clears the temperature override set by `SetTemperatureOverride`.

If no temperature override has been set, this interaction does nothing.

If a sensor with the given `name` is not found,

`ClearTemperatureOverrideError.SENSOR_NOT_FOUND` is returned.

void Connect (ConnectRequest & request, ConnectCompleter::Sync & completer)

Connects to the thermal sensor with the given `name`.

If any required arguments are not provided,

`ConnectError.INVALID_ARGUMENTS` is returned.

If a sensor with the given `name` is not found,

`ConnectError.SENSOR_NOT_FOUND` is returned.

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 687 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/natural_messaging.h