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
state_path: Input consumed bycrate::runtime::json_commands::state_named_command.name: Input consumed bycrate::runtime::json_commands::state_named_command.options_json: Input consumed bycrate::runtime::json_commands::state_named_command.
§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!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.