fuchsia.component.runtime

Added: HEAD

PROTOCOLS

CapabilityFactory

Defined in fuchsia.component.runtime/factory.fidl

The CapabilityFactory can be used to create new runtime capabilities.

Added: HEAD

CreateConnector

Request

NameType
receiver_client_endclient_end:Receiver
connector_server_endserver_end:Connector

CreateConnectorRouter

Request

NameType
router_client_endclient_end:ConnectorRouter
router_server_endserver_end:ConnectorRouter

CreateDataRouter

Request

NameType
router_client_endclient_end:DataRouter
router_server_endserver_end:DataRouter

CreateDictionary

Request

NameType
dictionary_server_endserver_end:Dictionary

CreateDictionaryRouter

Request

NameType
router_client_endclient_end:DictionaryRouter
router_server_endserver_end:DictionaryRouter

CreateDirConnector

Request

NameType
dir_receiver_client_endclient_end:DirReceiver
dir_connector_server_endserver_end:DirConnector

CreateDirConnectorRouter

Request

NameType
router_client_endclient_end:DirConnectorRouter
router_server_endserver_end:DirConnectorRouter

Connector

Defined in fuchsia.component.runtime/factory.fidl

A Connector represents the sending end of a connection to a capability. A Connector presents as a service node when inserted into a fuchsia.io.Directory.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Connect

Sends a channel to the Receiver associated with this Connector.

Request

NameType
channelhandle<channel>

ConnectorRouter

Defined in fuchsia.component.runtime/factory.fidl

A factory for Connector capabilities.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Route

Attempts to produce a Connector capability from this ConnectorRouter. This will return:

  • A Connector if the operation is successful.
  • An empty value if there is no issue found but the capability is not being provided (for example, an optional route ended in an offer from void).
  • An error, if the operation failed.

Request

NameType
requestRouteRequest
connector_server_endserver_end:Connector

Response

NameType
payloadConnectorRouter_Route_Result

DataRouter

Defined in fuchsia.component.runtime/factory.fidl

A factory for Data capabilities.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Route

Attempts to produce a Data capability from this DataRouter. This will return:

  • A Data value if the operation is successful.
  • An empty value if there is no issue found but the capability is not being provided (for example, an optional route ended in an offer from void).
  • An error, if the operation failed.

Request

NameType
requestRouteRequest

Response

NameType
payloadDataRouter_Route_Result

Dictionary

Defined in fuchsia.component.runtime/factory.fidl

A Dictionary is a bundle of named runtime capabilities.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Get

Returns a clone of the Capability named key in this dictionary, if that capability both exists and can be cloned.

Request

NameType
keyfuchsia.component.decl/name

Response

NameType
payloadDictionary_Get_Result

Insert

Inserts a new Capability into this Dictionary under the name key. Overwrites any existing entry.

The server end associated with the provided client end must be owned by component manager.

Request

NameType
keyfuchsia.component.decl/name
capabilityCapability

IterateKeys

Opens an iterator which can be used to iterate over the keys of this dictionary.

Request

NameType
key_iteratorserver_end:DictionaryKeyIterator

LegacyExport

Exports this dictionary for use in a fuchsia.component.Realm/CreateChild call.

Request

<EMPTY>

Response

NameType
payloadDictionary_LegacyExport_Result

Remove

Removes the Capability named key from this dictionary and returns it, if that capability exists.

Request

NameType
keyfuchsia.component.decl/name

Response

NameType
payloadDictionary_Remove_Result

DictionaryKeyIterator

Defined in fuchsia.component.runtime/factory.fidl

Added: HEAD

GetNext

Returns the next set of keys in this dictionary. Returns an empty vector when there are no more keys to iterate.

Request

<EMPTY>

Response

NameType
payloadDictionaryKeyIterator_GetNext_Result

DictionaryRouter

Defined in fuchsia.component.runtime/factory.fidl

A factory for Dictionary capabilities.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Route

Attempts to produce a Dictionary capability from this DictionaryRouter. This will return:

  • A Dictionary if the operation is successful.
  • An empty value if there is no issue found but the capability is not being provided (for example, an optional route ended in an offer from void).
  • An error, if the operation failed.

Request

NameType
requestRouteRequest
dictionary_server_endserver_end:Dictionary

Response

NameType
payloadDictionaryRouter_Route_Result

DirConnector

Defined in fuchsia.component.runtime/factory.fidl

A DirConnector represents the sending end of a connection to a capability. A DirConnector presents as a directory node when inserted into a fuchsia.io.Directory.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Connect

Sends a channel to the DirReceiver associated with this DirConnector.

Request

NameType
channelserver_end:fuchsia.io/Directory

DirConnectorRouter

Defined in fuchsia.component.runtime/factory.fidl

A factory for DirConnector capabilities.

Added: HEAD

Clone

Added: 26

Request

NameType
requestserver_end:fuchsia.unknown/Cloneable

Route

Attempts to produce a DirConnector capability from this DirConnectorRouter. This will return:

  • A DirConnector if the operation is successful.
  • An empty value if there is no issue found but the capability is not being provided (for example, an optional route ended in an offer from void).
  • An error, if the operation failed.

Request

NameType
requestRouteRequest
dir_connector_server_endserver_end:DirConnector

Response

NameType
payloadDirConnectorRouter_Route_Result

DirReceiver

Defined in fuchsia.component.runtime/factory.fidl

A DirReceiver represents the receiving end of a connection to a capability.

Added: HEAD

Receive

Receive will be called by component manager whenever a new handle has been given to any DirConnector associated with this DirReceiver.

Request

NameType
channelserver_end:fuchsia.io/Directory

Receiver

Defined in fuchsia.component.runtime/factory.fidl

A Receiver represents the receiving end of a connection to a capability.

Added: HEAD

Receive

Receive will be called by component manager whenever an new handle has been given to any Connector associated with this Receiver.

Request

NameType
channelhandle<channel>

STRUCTS

ConnectorRouter_Route_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
responseRouterResponseNo default

DataRouter_Route_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
responseRouterResponseNo default
dataData?No default

DictionaryKeyIterator_GetNext_Response

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
keysvector<fuchsia.component.decl/name>No default

DictionaryRouter_Route_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
responseRouterResponseNo default

Dictionary_Get_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
capabilityCapability?No default

Dictionary_LegacyExport_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
dictionary_reffuchsia.component.sandbox/DictionaryRefNo default

Dictionary_Remove_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
capabilityCapability?No default

DirConnectorRouter_Route_Response resource

Defined in fuchsia.component.runtime/factory.fidl

FieldTypeDescriptionDefault
responseRouterResponseNo default

WeakInstanceToken resource

Defined in fuchsia.component.runtime/factory.fidl

A token representing a component instance.

Added: HEAD

FieldTypeDescriptionDefault
tokenhandle<eventpair>No default

ENUMS

RouterError flexible

Type: uint32

Defined in fuchsia.component.runtime/factory.fidl

The error values returned when a route operation fails.

Added: HEAD

NameValueDescription
1

The router failed to find the capability.

2

The arguments provided to the function are invalid.

3

The operation is not supported.

4

An internal error occurred.

5

An unknown error occurred.

RouterResponse flexible

Type: uint32

Defined in fuchsia.component.runtime/factory.fidl

The error values returned when a route operation succeeds.

Added: HEAD

NameValueDescription
1

The server end has been connected to a valid object.

2

The capability was marked as unavailable.

TABLES

RouteRequest resource

Defined in fuchsia.component.runtime/factory.fidl

Contains metadata on how to route a capability, and a token representing the component that started the route.

Either both fields must be set, or neither.

Added: HEAD

OrdinalFieldTypeDescription
targetWeakInstanceToken
metadataclient_end:Dictionary

UNIONS

Capability flexible resource

Defined in fuchsia.component.runtime/factory.fidl

A runtime capability in the component framework. These are the fundamental types used by component manager to implement capability routing and access control.

Each of these client ends is a reference to an object owned by component manager.

Added: HEAD
OrdinalVariantTypeDescription
connectorclient_end:Connector
dir_connectorclient_end:DirConnector
dictionaryclient_end:Dictionary
dataData
connector_routerclient_end:ConnectorRouter
dir_connector_routerclient_end:DirConnectorRouter
dictionary_routerclient_end:DictionaryRouter
data_routerclient_end:DataRouter

ConnectorRouter_Route_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseConnectorRouter_Route_Response
errRouterError
framework_errinternal

Data flexible

Defined in fuchsia.component.runtime/factory.fidl

Static data which may be put in a dictionary. This is useful for setting values in the metadata of a RouteRequest.

Added: HEAD
OrdinalVariantTypeDescription
bytesvector<uint8>:8192
stringstring:8192
int64int64
uint64uint64

DataRouter_Route_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDataRouter_Route_Response
errRouterError
framework_errinternal

DictionaryKeyIterator_GetNext_Result strict

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDictionaryKeyIterator_GetNext_Response
framework_errinternal

DictionaryRouter_Route_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDictionaryRouter_Route_Response
errRouterError
framework_errinternal

Dictionary_Get_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDictionary_Get_Response
framework_errinternal

Dictionary_LegacyExport_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDictionary_LegacyExport_Response
framework_errinternal

Dictionary_Remove_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDictionary_Remove_Response
framework_errinternal

DirConnectorRouter_Route_Result strict resource

Defined in fuchsia.component.runtime/factory.fidl

OrdinalVariantTypeDescription
responseDirConnectorRouter_Route_Response
errRouterError
framework_errinternal

CONSTANTS

NameValueTypeDescription
MAX_DATA_LENGTH8192uint32
Added: HEAD