/// Checks if the appmgr loader service is available through our namespace and connects to it if
/// so. If not availble, returns Ok(None).
Checks if the appmgr loader service is available through our namespace and connects to it if
so. If not availble, returns Ok(None).
Checks if the appmgr loader service is available through our namespace and connects to it if so . If not availble returns Ok ( None ) .
fn connect_sys_loader() -> Result<Option<LoaderProxy>, Error> {
    let service_path = PathBuf::from(format!("/svc/{}", LoaderMarker::NAME));
    if !service_path.exists() {
        return Ok(None);
    }
    let loader = client::connect_to_service::<LoaderMarker>()
        .context("error connecting to system loader")?;
    return Ok(Some(loader));
}
fn connect_sys_loader ( ) -> Result < Option < LoaderProxy > , Error > { let service_path = PathBuf :: from ( format ! ( " " LoaderMarker NAME ) ) ; if ! service_path . exists ( ) { return Ok ( None ) ; } let loader = client :: connect_to_service :: < LoaderMarker > ( ) . context ( " " ) ? ; return Ok ( Some ( loader ) ) ; }
Checks if the appmgr loader service is available through our namespace and connects to it if
so.
Checks if the appmgr loader service is available through our namespace and connects to it if so .