template <>
class WireServer
Defined at line 237 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::ClientStateConnector>|
and |::fidl::ServerEnd
<
::fuchsia_thermal::ClientStateConnector>|).
Public Methods
void Connect (::fuchsia_thermal::wire::ClientStateConnectorConnectRequest * request, ConnectCompleter::Sync & completer)
Connects a [`ClientStateWatcher`] to the thermal state of the specified
[`ClientType`].
A client may call this method and begin using the [`ClientStateWatcher`]
client endpoint immediately.
If `client_type` does not exactly (case-sensitive) match with a client
entry found in the central thermal configuration, then the request will
fail. On failure, both the `watcher` server endpoint as well as the
current `ClientStateConnector` connection will be terminated.
+ `client_type` specifies the client-specific thermal state to which
`watcher` should be connected. The value is valid iff it matches with a
client entry found in the central thermal configuration.
+ `watcher` is the server endpoint of a [`ClientStateWatcher`] channel
that will be connected to the thermal state of `client_type`.
void WireServer ()
Defined at line 240 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 241 of file fidling/gen/sdk/fidl/fuchsia.thermal/fuchsia.thermal/cpp/fidl/fuchsia.thermal/cpp/wire_messaging.h