Struct common_types::engines::machine::Executed[][src]

pub struct Executed<T, V> {
    pub exception: Option<Error>,
    pub gas: U256,
    pub gas_used: U256,
    pub refunded: U256,
    pub cumulative_gas_used: U256,
    pub logs: Vec<LogEntry>,
    pub contracts_created: Vec<Address>,
    pub output: Bytes,
    pub trace: Vec<T>,
    pub vm_trace: Option<V>,
    pub state_diff: Option<StateDiff>,
}

Transaction execution receipt.

Fields

exception: Option<Error>

True if the outer call/create resulted in an exceptional exit.

gas: U256

Gas paid up front for execution of transaction.

gas_used: U256

Gas used during execution of transaction.

refunded: U256

Gas refunded after the execution of transaction. To get gas that was required up front, add refunded and gas_used.

cumulative_gas_used: U256

Cumulative gas used in current block so far.

cumulative_gas_used = gas_used(t0) + gas_used(t1) + ... gas_used(tn)

where tn is current transaction.

logs: Vec<LogEntry>

Vector of logs generated by transaction.

contracts_created: Vec<Address>

Addresses of contracts created during execution of transaction. Ordered from earliest creation.

eg. sender creates contract A and A in constructor creates contract B

B creation ends first, and it will be the first element of the vector.

output: Bytes

Transaction output.

trace: Vec<T>

The trace of this transaction.

vm_trace: Option<V>

The VM trace of this transaction.

state_diff: Option<StateDiff>

The state diff, if we traced it.

Trait Implementations

impl<T: Clone, V: Clone> Clone for Executed<T, V>[src]

impl<T: Debug, V: Debug> Debug for Executed<T, V>[src]

impl<T: PartialEq, V: PartialEq> PartialEq<Executed<T, V>> for Executed<T, V>[src]

impl<T, V> StructuralPartialEq for Executed<T, V>[src]

Auto Trait Implementations

impl<T, V> RefUnwindSafe for Executed<T, V> where
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<T, V> Send for Executed<T, V> where
    T: Send,
    V: Send

impl<T, V> Sync for Executed<T, V> where
    T: Sync,
    V: Sync

impl<T, V> Unpin for Executed<T, V> where
    T: Unpin,
    V: Unpin

impl<T, V> UnwindSafe for Executed<T, V> where
    T: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,