Skip to main content

load_feature

Function load_feature 

Source
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

§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");