Module connect

Source
Expand description

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.

Functions§

connect_to_named_protocol_at_dir_root
Connect to an instance of a FIDL protocol hosted in directory using the given filename.
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.