Function fuchsia_component::client::connect_to_protocol_sync_at

source ยท
pub fn connect_to_protocol_sync_at<P: DiscoverableProtocolMarker>(
    service_prefix: impl AsRef<str>,
) -> Result<P::SynchronousProxy, Error>
Expand description

Connect to a FIDL protocol using the provided namespace prefix, returning a synchronous proxy.

Note: while this function returns a synchronous thread-blocking proxy it does not block until the connection is complete. The proxy must be used to discover whether the connection was successful.