/// Checks if a package resolver service is available through our namespace and connects to it if
/// so. If not availble, returns Ok(None).
Checks if a package resolver service is available through our namespace and connects to it if
so. If not availble, returns Ok(None).
Checks if a package resolver service is available through our namespace and connects to it if so . If not availble returns Ok ( None ) .
fn connect_pkg_resolver() -> Result<Option<PackageResolverProxy>, Error> {
    let service_path = PathBuf::from(format!("/svc/{}", PackageResolverMarker::NAME));
    if !service_path.exists() {
        return Ok(None);
    }
    let pkg_resolver = connect_to_service::<PackageResolverMarker>()
        .context("error connecting to package resolver")?;
    return Ok(Some(pkg_resolver));
}
fn connect_pkg_resolver ( ) -> Result < Option < PackageResolverProxy > , Error > { let service_path = PathBuf :: from ( format ! ( " " PackageResolverMarker NAME ) ) ; if ! service_path . exists ( ) { return Ok ( None ) ; } let pkg_resolver = connect_to_service :: < PackageResolverMarker > ( ) . context ( " " ) ? ; return Ok ( Some ( pkg_resolver ) ) ; }
Checks if a package resolver service is available through our namespace and connects to it if
so.
Checks if a package resolver service is available through our namespace and connects to it if so .