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 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.