template <>
class Server
Defined at line 457 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/cpp/natural_messaging.h
Public Methods
void GetFanLevel (GetFanLevelCompleter::Sync & completer)
Get the current fan level.
- response `status`
ZX_ERR_INTERNAL if `fan_level` is not available.
This generally means that `fan_level` has not
been initialized yet or something has gone
terribly wrong.
- response `fan_level` a uint32 field indicating the
current fan level. See fan level description above.
void Server ()
Defined at line 460 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/cpp/natural_messaging.h
void SetFanLevel (SetFanLevelRequest & request, SetFanLevelCompleter::Sync & completer)
Set the fan level.
+ request `fan_level` a uint32 field indicating the
requested fan level. See fan level description above.
- response `status`
ZX_ERR_OUT_OF_RANGE if the requested fan_level is not
valid.
void GetClientType (GetClientTypeCompleter::Sync & completer)
Returns the client type to use for
`fuchsia.thermal.ClientStateConnector::Connect`.
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 461 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/cpp/natural_messaging.h