template <>

class WireServer

Defined at line 6799 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_sys2::RouteValidator>|

and |::fidl::ServerEnd

<

::fuchsia_sys2::RouteValidator>|).

Public Methods

void Validate (::fuchsia_sys2::wire::RouteValidatorValidateRequest * request, ValidateCompleter::Sync & completer)

Routes all incoming and exposed capabilities of a component identified by the given

moniker. If the routing failed, an error is returned in the response.

This function may cause components to be resolved.

Errors:

* INVALID_ARGUMENTS: The given moniker is not valid.

* INSTANCE_NOT_FOUND: No instance was found matching the given moniker.

void Route (::fuchsia_sys2::wire::RouteValidatorRouteRequest * request, RouteCompleter::Sync & completer)

Routes a component's used or exposed capabilities, and returns

information about them.

If `targets` is empty, returns results for all the component's used and

exposed capabilities. Otherwise, returns only results for capabilities

specified in `targets`.

This method only supports routing namespace capabilities (protocols,

directories, services, and storage).

Errors:

* INVALID_ARGUMENTS: The given moniker or name is not valid, or `name`

is not a namespace capability.

* INSTANCE_NOT_FOUND: No instance was found matching the given moniker.

* RESOURCE_NOT_FOUND: No capability was found matching one of the given names.

void WireServer ()

Defined at line 6802 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/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 6803 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h