Sigil documentation
ReferenceRust referencesigil-execution

sigil-execution · result

Source declarations, signatures and documentation for result.

Source: sigil/node/sigil-execution/src/result.rs. SHA-256: 55b67483f749967398b9308385ec07e12ba9f188df78746f93621dbb05aa7458.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

result::ExecutionResult

The complete result of a single WASM execution within an Organization Zone.

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ExecutionResult {
/// Zone in which the execution occurred.

pub zone_id: String,
/// Hash of the transaction that triggered this execution.

pub tx_hash: SigilHash,
/// Whether the execution completed successfully.

pub success: bool,
/// Total gas consumed during execution.

pub gas_used: u64,
/// Return value from the WASM entry point (if any).

pub return_value: Option<Vec<u8>>,
/// State mutations applied during execution.

pub state_changes: Vec<StateChange>,
/// Cross-zone messages emitted during execution.

pub messages: Vec<CrossZoneMessage>,
/// Log entries emitted during execution.

pub logs: Vec<LogEntry>,
/// Error description if the execution failed.

pub error: Option<String>
}

Source line: 15.

result::ExecutionResult::is_success

Returns true if the execution succeeded (no error).

pub fn is_success(&self) -> bool;

Source line: 38.

result::ExecutionResult::state_change_count

Returns the number of state mutations.

pub fn state_change_count(&self) -> usize;

Source line: 43.

result::ExecutionResult::message_count

Returns the number of cross-zone messages emitted.

pub fn message_count(&self) -> usize;

Source line: 48.

On this page