class RouteValidator

Defined at line 13349 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/hlcpp/fuchsia/sys2/cpp/fidl.h

Public Members

static const char[] Name_

Public Methods

void ~RouteValidator ()
void Validate (::std::string moniker, ValidateCallback callback)

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 (::std::string moniker, ::std::vector< ::fuchsia::sys2::RouteTarget> targets, RouteCallback callback)

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.