fuchsia.component.sandbox

Added: HEAD

PROTOCOLS

Dict

Defined in fuchsia.component.sandbox/sandbox.fidl

Insert

Inserts a key-value pair into the dict.

  • error DictError.ALREADY_EXISTS if the dict already contains an item with the same key.

Request

NameType
key DictKey
value Capability

Response

NameType
payload Dict_Insert_Result

Read

Returns all items in this dict. Requires that all capabilities in the dict are cloneable. This will clone each capability in the dict and return handles to the cloned capabilities.

  • error DictError.NOT_CLONEABLE if any of the capabilities in the dict could not be cloned.

Request

<EMPTY>

Response

NameType
payload Dict_Read_Result

Remove

Removes a key from the dict, returning the Capability value.

  • error DictError.NOT_FOUND if the dict does not contain the key.

Request

NameType
key DictKey

Response

NameType
payload Dict_Remove_Result

Factory

Defined in fuchsia.component.sandbox/sandbox.fidl

Entrypoint for instantiation of sandbox types.

CreateConnector

Create a connector (pair of Sender and Receiver).

Request

NameType
sender server_end<Sender>
receiver Receiver

CreateDict

Create a dictionary initialized with items.

Request

NameType
items vector<DictItem>
server_end server_end<Dict>

Response

NameType
payload Factory_CreateDict_Result

Receiver

Defined in fuchsia.component.sandbox/sandbox.fidl

Receive

Receives a single Capability handle.

Request

NameType
capability Capability

Sender

Defined in fuchsia.component.sandbox/sandbox.fidl

Send

Sends a single Capability handle over this sender.

Request

NameType
capability Capability

Response

NameType
payload Sender_Send_Result

STRUCTS

DictItem resource

Defined in fuchsia.component.sandbox/sandbox.fidl

A key-value pair in a Dict.

FieldTypeDescriptionDefault
key DictKey No default
value Capability No default

Dict_Insert_Response

Defined in fuchsia.component.sandbox/sandbox.fidl

<EMPTY>

Dict_Read_Response resource

Defined in fuchsia.component.sandbox/sandbox.fidl

FieldTypeDescriptionDefault
items vector<DictItem> No default

Dict_Remove_Response resource

Defined in fuchsia.component.sandbox/sandbox.fidl

FieldTypeDescriptionDefault
capability Capability No default

Factory_CreateDict_Response

Defined in fuchsia.component.sandbox/sandbox.fidl

<EMPTY>

Sender_Send_Response

Defined in fuchsia.component.sandbox/sandbox.fidl

<EMPTY>

ENUMS

DictError flexible

Type: uint32

Defined in fuchsia.component.sandbox/sandbox.fidl

Error returned from methods in Dict.

NameValueDescription
1

The Dict does not contain an item with the given key.

2

The Dict already contains an item with the given key.

3

The Capability handle was invalid.

4

A capability could not be cloned.

SenderError flexible

Type: uint32

Defined in fuchsia.component.sandbox/sandbox.fidl

NameValueDescription
1

The Capability handle was invalid.

UNIONS

Dict_Insert_Result strict

Defined in fuchsia.component.sandbox/sandbox.fidl

OrdinalVariantTypeDescription
response Dict_Insert_Response
err DictError

Dict_Read_Result strict resource

Defined in fuchsia.component.sandbox/sandbox.fidl

OrdinalVariantTypeDescription
response Dict_Read_Response
err DictError

Dict_Remove_Result strict resource

Defined in fuchsia.component.sandbox/sandbox.fidl

OrdinalVariantTypeDescription
response Dict_Remove_Response
err DictError

Factory_CreateDict_Result strict

Defined in fuchsia.component.sandbox/sandbox.fidl

OrdinalVariantTypeDescription
response Factory_CreateDict_Response
err DictError

Sender_Send_Result strict

Defined in fuchsia.component.sandbox/sandbox.fidl

OrdinalVariantTypeDescription
response Sender_Send_Response
err SenderError

ALIASES

NameValueDescription
Capability zx/Handle

A capability of unknown type.

DictKey string[fidl/MAX]

The key of a DictItem.