Expand description
Tools for starting or connecting to existing Fuchsia applications and services.
Modules§
- connect
- The connect module provides connect methods where the generic argument is the return type rather than the marker type. This allows them to work for different return types; the same method can be used for asynchronous proxies, synchronous proxies, client ends, etc. This also makes it possible to elide the type where the compiler can infer the type, which is not the case when using the marker types.
Structs§
- Protocol
Connector - A protocol connection request that allows checking if the protocol exists.
- Service
- A service from an incoming namespace’s
/svc
directory. - Service
Instance Directory - This wraps an instance directory for a service capability and provides the MemberOpener trait for it. This can be boxed and used with a |ServiceProxy::from_member_opener|.
- Service
Instance Stream - A stream iterator for a service directory that produces one item for every service instance
that is added to it as they are added. Returned from
Service::watch
Constants§
- SVC_DIR
- Path to the service directory in an application’s root namespace.
Traits§
- Connect
- Trait that for types that can be returned when you connect to protocols.
Functions§
- clone_
namespace_ svc - Clone the handle to the service directory in the application’s root namespace.
- connect_
channel_ to_ protocol - Connect to a FIDL protocol using the provided channel.
- connect_
channel_ to_ protocol_ at - Connect to a FIDL protocol using the provided channel and namespace prefix.
- connect_
channel_ to_ protocol_ at_ path - Connect to a FIDL protocol using the provided channel and namespace path.
- connect_
to_ childs_ protocol - Connects to a FIDL protocol exposed by a child that’s within the
/svc
directory. Only works in CFv2, and only works if this component usesfuchsia.component.Realm
. - connect_
to_ named_ protocol_ at_ dir_ root - Connect to an instance of a FIDL protocol hosted in
directory
using the givenfilename
. - connect_
to_ protocol - Connect to a FIDL protocol in the
/svc
directory of the application’s root namespace. - connect_
to_ protocol_ at - Connect to a FIDL protocol using the provided namespace prefix.
- 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_ protocol_ at_ path - Connect to a FIDL protocol using the provided path.
- connect_
to_ protocol_ sync - Connect to a FIDL protocol using the application root namespace, returning a synchronous proxy.
- connect_
to_ protocol_ sync_ at - Connect to a FIDL protocol using the provided namespace prefix, returning a synchronous proxy.
- connect_
to_ service_ instance - Connect to an instance of a FIDL service in the
/svc
directory of the application’s root namespace.instance
is a path of one or more components. - connect_
to_ service_ instance_ at_ dir - Connect to a named instance of a FIDL service hosted in the service subdirectory under the
directory protocol channel
directory
- connect_
to_ service_ instance_ at_ dir_ svc - Connect to an instance of a FIDL service hosted in
directory
, in thesvc/
subdir. - new_
protocol_ connector - Return a FIDL protocol connector at the default service directory in the application’s root namespace.
- new_
protocol_ connector_ at - Return a FIDL protocol connector at the specified service directory in the application’s root namespace.
- new_
protocol_ connector_ in_ dir - Return a FIDL protocol connector at the specified service directory.
- open_
childs_ exposed_ directory - Opens the exposed directory from a child. Only works in CFv2, and only works if this component
uses
fuchsia.component.Realm
. - open_
service - Opens a FIDL service as a directory, which holds instances of the service.
- open_
service_ at - Opens a FIDL service with a custom name as a directory, which holds instances of the service.
- realm
- Returns a connection to the Realm protocol. Components v2 only.