Struct diem_types::transaction::TransactionOutput
source · pub struct TransactionOutput { /* private fields */ }
Expand description
The output of executing a transaction.
Implementations§
source§impl TransactionOutput
impl TransactionOutput
pub fn new( write_set: WriteSet, events: Vec<ContractEvent>, gas_used: u64, status: TransactionStatus ) -> Self
pub fn into(self) -> (WriteSet, Vec<ContractEvent>)
pub fn write_set(&self) -> &WriteSet
pub fn events(&self) -> &[ContractEvent]
pub fn gas_used(&self) -> u64
pub fn status(&self) -> &TransactionStatus
Trait Implementations§
source§impl Clone for TransactionOutput
impl Clone for TransactionOutput
source§fn clone(&self) -> TransactionOutput
fn clone(&self) -> TransactionOutput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionOutput
impl Debug for TransactionOutput
source§impl<'de> Deserialize<'de> for TransactionOutput
impl<'de> Deserialize<'de> for TransactionOutput
source§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
source§impl PartialEq<TransactionOutput> for TransactionOutput
impl PartialEq<TransactionOutput> for TransactionOutput
source§fn eq(&self, other: &TransactionOutput) -> bool
fn eq(&self, other: &TransactionOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionOutput
impl Serialize for TransactionOutput
impl Eq for TransactionOutput
impl StructuralEq for TransactionOutput
impl StructuralPartialEq for TransactionOutput
Auto Trait Implementations§
impl RefUnwindSafe for TransactionOutput
impl Send for TransactionOutput
impl Sync for TransactionOutput
impl Unpin for TransactionOutput
impl UnwindSafe for TransactionOutput
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.