Skip to main content

state_named_command

Function state_named_command 

Source
pub fn state_named_command(
    state_path: &Path,
    name: &str,
    options_json: &str,
) -> Result<String, i32>
Expand description

Executes one state JSON command against the persisted runtime-state contract.

§Parameters

§Returns

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

§Errors

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

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::state_named_command.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::state_named_command(todo!(), "name", todo!());