Namespaces

Enumerations

enum class Availability : uint32_t
Name Value Comments
kRequired 1u

The capability must be available. Failure to route the capability is an
error.

kOptional 2u

Inside a use declaration: the component can function if it fails to
obtain the capability.

Inside an offer/expose declaration: the capability may not be available
in some system configurations. As a corollary, the target component must
not have a required dependency on the capability.

kSameAsTarget 3u

If the target of the corresponding offer or expose declaration requires
the capability, then the behavior is equivalent to required. If the
target has an optional dependency on the capability, then the behavior
is equivalent to optional. This is useful for container components that
would like to change their routing availability based on ones inside.

This value is not allowed inside a use declaration.

kTransitional 4u

The source may omit the route completely without even having to route
from `void`.

[`TRANSITIONAL`] is used for soft transitions that introduce new
capabilities.

Describes the expected availability of the capability.

Some capabilities may not be present on all system configurations. In those

cases, the availability will be declared as `OPTIONAL` along the chains of

exposes/offers/uses, and the capability would be routed from `void` on

system configurations where it does not make sense to route or provide a

particular capability (e.g. graphical capabilities on a headless system).

Defined at line 25 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/common_types.h

Records