template <>
class WireServer
Defined at line 1712 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::SensorManager>|
and |::fidl::ServerEnd
<
::fuchsia_thermal::SensorManager>|).
Public Methods
void ListSensors (ListSensorsCompleter::Sync & completer)
Lists sensors that may be controlled and connected to by clients.
void SetTemperatureOverride (::fuchsia_thermal::wire::SensorManagerSetTemperatureOverrideRequest * 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 (::fuchsia_thermal::wire::SensorManagerClearTemperatureOverrideRequest * 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 (::fuchsia_thermal::wire::SensorManagerConnectRequest * 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.
void WireServer ()
Defined at line 1715 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 1716 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/wire_messaging.h