Module result

Module result 

Source
Expand description

Result and execution types from results of RPC calls to the network.

Structs§

Execution
Struct to hold a type we want to return along w/ the execution result view. This view has extra info about the execution, such as gas usage and whether the transaction failed to be processed on the chain.
ExecutionFinalResult
Execution related info found after performing a transaction. Can be converted into ExecutionSuccess or ExecutionFailure through into_result
ExecutionOutcome
The execution outcome of a transaction. This type contains all data relevant to calling into a function, and getting the results back.
ExecutionResult
The result after evaluating the status of an execution. This can be ExecutionSuccess for successful executions or a ExecutionFailure for failed ones.
Value
Value type returned from an ExecutionOutcome or receipt result. This value can be converted into the underlying Rust datatype, or directly grab the raw bytes associated to the value.
ViewResultDetails
The result from a call into a View function. This contains the contents or the results from the view function call itself. The consumer of this object can choose how to deserialize its contents.

Enums§

ValueOrReceiptId
Value or ReceiptId from a successful execution.

Type Aliases§

ExecutionFailure
Execution related info as a result of performing a failed transaction execution on the network. The related error message can be retrieved from this object or can be forwarded.
ExecutionSuccess
Execution related info as a result of performing a successful transaction execution on the network. This value can be converted into the returned value of the transaction via ExecutionSuccess::json or ExecutionSuccess::borsh
Result