Struct diem_types::transaction::TransactionInfo [−][src]
pub struct TransactionInfo { /* fields omitted */ }
Expand description
TransactionInfo
is the object we store in the transaction accumulator. It consists of the
transaction as well as the execution result of this transaction.
Trait Implementations
type Hasher = TransactionInfoHasher
type Hasher = TransactionInfoHasher
The associated Hasher
type which comes with a unique salt for this type.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn new(
transaction_hash: HashValue,
state_root_hash: HashValue,
event_root_hash: HashValue,
gas_used: u64,
status: KeptVMStatus
) -> TransactionInfo
fn new(
transaction_hash: HashValue,
state_root_hash: HashValue,
event_root_hash: HashValue,
gas_used: u64,
status: KeptVMStatus
) -> TransactionInfo
Constructs a new TransactionInfo
object using transaction hash, state root hash and event
root hash. Read more
Returns the hash of this transaction.
Returns root hash of Sparse Merkle Tree describing the world state at the end of this transaction. Read more
Returns the root hash of Merkle Accumulator storing all events emitted during this transaction. Read more
Resturns the Status from the VM for this transaction.
Auto Trait Implementations
impl RefUnwindSafe for TransactionInfo
impl Send for TransactionInfo
impl Sync for TransactionInfo
impl Unpin for TransactionInfo
impl UnwindSafe for TransactionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.