template <>

class Server

Defined at line 1365 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h

Public Methods

void GetInstance (GetInstanceRequest & request, GetInstanceCompleter::Sync & completer)

Gets an instance identified by its moniker.

void GetResolvedDeclaration (GetResolvedDeclarationRequest & request, GetResolvedDeclarationCompleter::Sync & completer)

Gets the manifest of an instance identified by its moniker.

The manifest is encoded in its standalone persistable format per RFC-0120 and

is sent across using an iterator. Some manifests are too large to send over a

Zircon channel and we can't use a VMO because we need an approach that is

compatible with overnet.

void ResolveDeclaration (ResolveDeclarationRequest & request, ResolveDeclarationCompleter::Sync & completer)

Gets the manifest of a component URL as if it were a child of the specified parent

without actually creating or starting that component.

The manifest is encoded in its standalone persistable format per RFC-0120 and

is sent across using an iterator. Some manifests are too large to send over a

Zircon channel and we can't use a VMO because we need an approach that is

compatible with overnet.

void GetStructuredConfig (GetStructuredConfigRequest & request, GetStructuredConfigCompleter::Sync & completer)

Gets the structured config of an instance identified by its moniker.

void GetAllInstances (GetAllInstancesCompleter::Sync & completer)

Returns an iterator over all component instances in this realm and instances within resolved

children, recursively. Unresolved child components will be included in this list, but

children of unresolved children will not be.

void ConstructNamespace (ConstructNamespaceRequest & request, ConstructNamespaceCompleter::Sync & completer)

Constructs the namespace of an instance as determined by its use declarations.

This is usually identical to what would be given to the component's runner on

component start time, unless extended by

`fuchsia.component/StartChildArgs.namespace_entries`.

void OpenDirectory (OpenDirectoryRequest & request, OpenDirectoryCompleter::Sync & completer)

Opens the specified directory in an instance.

void ConnectToStorageAdmin (ConnectToStorageAdminRequest & request, ConnectToStorageAdminCompleter::Sync & completer)

Connects to the StorageAdmin protocol of a storage declared by an instance.

Deprecated, use OpenStorageAdmin instead.

void OpenStorageAdmin (OpenStorageAdminRequest & request, OpenStorageAdminCompleter::Sync & completer)

Connects to the StorageAdmin protocol of a storage declared by an instance.

void Server ()

Defined at line 1368 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_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 ~Server ()

Defined at line 1369 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/natural_messaging.h