pub struct RootInvokeResult {
pub output: InvocationFrameOutput,
pub gas_consumed: u64,
pub trace: Option<InvocationFrameTrace>,
pub events: Vec<TxEmittedEvent>,
pub rv32_stack_usage_records: Vec<Rv32StackUsage>,
}Expand description
Result of a transaction’s root invocation (TransactionHandler::root_invoke).
Fields§
§output: InvocationFrameOutputThe root frame’s outcome.
gas_consumed: u64Gas consumed by the invocation.
trace: Option<InvocationFrameTrace>The execution trace, when tracing was enabled.
events: Vec<TxEmittedEvent>Events emitted by the transaction.
rv32_stack_usage_records: Vec<Rv32StackUsage>The stack records of the rv32 invocations the transaction ran, in
the order they finished: a callee’s before its caller’s. When the
root invocation targets an rv32 contract its own record is the last;
when it targets a mock contract, every record is a call made under
it. Empty if it ran none. See Rv32StackUsage.
Implementations§
Source§impl RootInvokeResult
impl RootInvokeResult
Sourcepub fn rv32_stack_usage(&self) -> Option<Rv32StackUsage>
pub fn rv32_stack_usage(&self) -> Option<Rv32StackUsage>
The most recent of
rv32_stack_usage_records: the
root invocation’s own stack record when it targets an rv32 contract,
else the last rv32 call made under it. None if the transaction ran
none.
Auto Trait Implementations§
impl Freeze for RootInvokeResult
impl RefUnwindSafe for RootInvokeResult
impl Send for RootInvokeResult
impl Sync for RootInvokeResult
impl Unpin for RootInvokeResult
impl UnsafeUnpin for RootInvokeResult
impl UnwindSafe for RootInvokeResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more