template <>

class WireServer

Defined at line 967 of file fidling/gen/sdk/fidl/fuchsia.ui.display.singleton/fuchsia.ui.display.singleton/cpp/fidl/fuchsia.ui.display.singleton/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_ui_display_singleton::VsyncSource>|

and |::fidl::ServerEnd

<

::fuchsia_ui_display_singleton::VsyncSource>|).

Public Methods

void SetVsyncEnabled (::fuchsia_ui_display_singleton::wire::VsyncSourceSetVsyncEnabledRequest * request, SetVsyncEnabledCompleter::Sync & completer)

Enables or disables receiving `OnVsync` for the given display.

The client receives `OnVsync` callbacks iff this function is called with `enabled=true`.

Calling this with `enabled=false` stops generating callbacks. Note that there may be a

race with a server receiving this and extra `OnVsync` may be received.

By default, the listener is assumed to have called `enabled=false`.

void WireServer ()

Defined at line 970 of file fidling/gen/sdk/fidl/fuchsia.ui.display.singleton/fuchsia.ui.display.singleton/cpp/fidl/fuchsia.ui.display.singleton/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 971 of file fidling/gen/sdk/fidl/fuchsia.ui.display.singleton/fuchsia.ui.display.singleton/cpp/fidl/fuchsia.ui.display.singleton/cpp/wire_messaging.h