template <>

class WireServer

Defined at line 1246 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_settings::Light>|

and |::fidl::ServerEnd

<

::fuchsia_settings::Light>|).

Public Methods

void WatchLightGroups (WatchLightGroupsCompleter::Sync & completer)

Fetches information on the controllable light groups on the device.

Returns immediately on first call; subsequent calls return when the

value changes.

If this call fails, it is considered a fatal error and the channel

will be closed.

void WatchLightGroup (::fuchsia_settings::wire::LightWatchLightGroupRequest * request, WatchLightGroupCompleter::Sync & completer)

Fetches information on an individual light group on the device with the

given name. Returns immediately on first call; subsequent calls return

when the value changes.

If this call fails, it is considered a fatal error and the channel

will be closed. If the failure is due to an invalid light group name,

the channel will be closed with a NOT_FOUND epitaph.

void SetLightGroupValues (::fuchsia_settings::wire::LightSetLightGroupValuesRequest * request, SetLightGroupValuesCompleter::Sync & completer)

Sets the values for the lights in the group with the given name.

If the provided value does not match the light group's type, this

call will fail.

The requested changes may not take immediate effect if

the light is forced to a certain state by the device's hardware. This

call will still succeed, but the light's value may not change.

void WireServer ()

Defined at line 1249 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/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 1250 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_messaging.h