/// Connect to a service, returning an error if the service does not exist in
/// the service directory.
Connect to a service, returning an error if the service does not exist in
the service directory.
Connect to a service returning an error if the service does not exist in the service directory .
async fn svc_connect<S: fidl::endpoints::DiscoverableProtocolMarker>(
    svc_dir: &fio::DirectoryProxy,
) -> Result<S::Proxy, anyhow::Error> {
    optional_svc_connect::<S>(svc_dir).await?.ok_or(anyhow::anyhow!("service does not exist"))
}
async fn svc_connect < S : fidl :: endpoints :: DiscoverableProtocolMarker > ( svc_dir : & fio :: DirectoryProxy , ) -> Result < S :: Proxy , anyhow :: Error > { optional_svc_connect :: < S > ( svc_dir ) . await ? . ok_or ( anyhow :: anyhow ! ( " " ) ) }
Connect to a service, returning an error if the service does not exist in
the service directory.
Connect to a service returning an error if the service does not exist in the service directory .
svc_dir
&fio::DirectoryProxy