Module fuchsia_component::client
source · Expand description
Tools for starting or connecting to existing Fuchsia applications and services.
Structs§
- A protocol connection request that allows checking if the protocol exists.
- A service from an incoming namespace’s
/svc
directory. - An instance of an aggregated fidl service that has been enumerated by [
ServiceWatcher::watch
] or [ServiceWatcher::watch_for_any
]. - 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|.
- 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
Functions§
- Clone the handle to the service directory in the application’s root namespace.
- Connect to a FIDL protocol using the provided channel.
- Connect to a FIDL protocol using the provided channel and namespace prefix.
- Connect to a FIDL protocol using the provided channel and namespace path.
- 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 an instance of a FIDL service hosted on the directory protocol channel
directory
.instance
is a path of one or more components. - Connect to an instance of a FIDL protocol hosted in
directory
using the givenfilename
. - Connect to a FIDL protocol using the application root namespace.
- Connect to a FIDL protocol using the provided namespace prefix.
- Connect to an instance of a FIDL protocol hosted in
directory
. - Connect to an instance of a FIDL protocol hosted in
directory
, in thesvc/
subdir. - Connect to a FIDL protocol using the provided path.
- Connect to a FIDL protocol using the application root namespace, returning a synchronous proxy.
- Connect to a FIDL protocol using the provided namespace prefix, returning a synchronous proxy.
- 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 an instance of a FIDL service using the provided path prefix.
path_prefix
should not contain any slashes.instance
is a path of one or more components. - Connect to a named instance of a FIDL service hosted in the service subdirectory under the directory protocol channel
directory
- Connect to an instance of a FIDL service hosted in
directory
, in thesvc/
subdir. - Return a FIDL protocol connector at the default service directory in the application’s root namespace.
- Return a FIDL protocol connector at the specified service directory in the application’s root namespace.
- Return a FIDL protocol connector at the specified service directory.
- Opens the exposed directory from a child. Only works in CFv2, and only works if this component uses
fuchsia.component.Realm
. - Opens a FIDL service as a directory, which holds instances of the service.
- Opens a FIDL service hosted in
directory
as a directory, which holds instances of the service. - Returns a connection to the Realm protocol. Components v2 only.