[][src]Module fuchsia_component::client

Tools for starting or connecting to existing Fuchsia applications and services.

Structs

App

App represents a launched application.

AppBuilder

A component builder, providing a simpler interface to fidl_fuchsia_sys::LauncherProxy::create_component.

ExitStatus

Describes the result of a component after it has terminated.

LaunchOptions

Options for the launcher when starting an applications.

Output

The output of a finished component.

OutputError

The output of a component that terminated with a failure.

ScopedInstance

RAII object that keeps a component instance alive until it's dropped, and provides convenience functions for using the instance. Components v2 only.

ServiceConnector

A service connection request that allows checking if the service exists.

Enums

Stdio

Describes what to do with a standard I/O stream for a child component.

Functions

add_dir_to_namespace

Adds a new directory to the namespace for the new process.

add_handle_to_namespace

Adds a new directory handle to the namespace for the new process.

clone_namespace_svc

Clone the handle to the service directory in the application's root namespace.

connect_channel_to_service

Connect to a FIDL service using the provided channel.

connect_channel_to_service_at

Connect to a FIDL service using the provided channel and namespace prefix.

connect_channel_to_service_at_path

Connect to a FIDL service using the provided channel and namespace path.

connect_to_protocol_at_dir_root

Connect to an instance of a FIDL protocol hosted in directory.

connect_to_protocol_at_dir_svc

Connect to an instance of a FIDL protocol hosted in directory, in the svc/ subdir.

connect_to_service

Connect to a FIDL service using the application root namespace.

connect_to_service_at

Connect to a FIDL service using the provided namespace prefix.

connect_to_service_at_path

Connect to a FIDL service using the provided path.

connect_to_unified_service

Connect to the "default" instance of a FIDL Unified Service in the service directory of the application's root namespace.

connect_to_unified_service_at_dir

Connect to the "default" instance of a FIDL Unified Service hosted on the directory protocol channel directory.

connect_to_unified_service_instance

Connect to an instance of a FIDL Unified Service in the service directory of the application's root namespace.

connect_to_unified_service_instance_at

Connect to an instance of a FIDL Unified Service using the provided namespace prefix.

connect_to_unified_service_instance_at_dir

Connect to an instance of a FIDL Unified Service hosted on the directory protocol channel directory.

launch

Launch an application at the specified URL. Components v1 only.

launch_with_options

Launch an application at the specified URL. Components v1 only.

launcher

Returns a connection to the application launcher service. Components v1 only.

new_service_connector

Return a FIDL service connector at the default service directory in the application's root namespace.

new_service_connector_at

Return a FIDL service connector at the specified service directory in the application's root namespace.

new_service_connector_in_dir

Return a FIDL service connector at the specified service directory.

realm

Returns a connection to the Realm service. Components v2 only.