template <>
class WireServer
Defined at line 587 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_fan::Fan>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_fan::Fan>|).
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 SetFanLevel (::fuchsia_hardware_fan::wire::FanSetFanLevelRequest * 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 WireServer ()
Defined at line 590 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/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 591 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/cpp/fidl/fuchsia.hardware.fan/cpp/wire_messaging.h