Skip to main content

load_app_runtime_from_artifact

Function load_app_runtime_from_artifact 

Source
pub fn load_app_runtime_from_artifact(
    artifact_dir: &Path,
) -> Result<AppRuntime, &'static str>
Expand description

Loads one app runtime from a built artifact tree.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::load_app_runtime_from_artifact or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::load_app_runtime_from_artifact cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::load_app_runtime_from_artifact(std::path::Path::new("build/dev_docs"));
  • crate::runtime for adjacent helpers that share the same runtime surface.