pub fn load_feature(
app: &AppRuntime,
feature_id: &str,
) -> Result<Value, FeatureRuntimeError>Expand description
Loads one compiled feature contract from the app artifact tree.
§Parameters
app: Input consumed bycrate::runtime::feature_runtime::load_feature.feature_id: Input consumed bycrate::runtime::feature_runtime::load_feature.
§Returns
Returns the successful value produced by crate::runtime::feature_runtime::load_feature or an error when the operation fails.
§Errors
Returns an error value when crate::runtime::feature_runtime::load_feature cannot complete successfully.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::feature_runtime::load_feature.
§Examples
ⓘ
let _result = pharos_native::runtime::feature_runtime::load_feature(todo!(), "feature");§Related
crate::runtime::feature_runtimefor adjacent helpers that share the same runtime surface.