[][src]Enum transact::protocol::receipt::TransactionResult

pub enum TransactionResult {
    Valid {
        state_changes: Vec<StateChange>,
        events: Vec<Event>,
        data: Vec<Vec<u8>>,
    },
    Invalid {
        error_message: String,
        error_data: Vec<u8>,
    },
}

A TransactionResult contains either the valid or invalid result of the transaction.

Variants

Valid

Fields of Valid

state_changes: Vec<StateChange>

Updates to state that were generated by the transaction.

events: Vec<Event>

Events fired by this transaction.

data: Vec<Vec<u8>>

Transaction family defined data.

Invalid

Fields of Invalid

error_message: String

Human-readable reason explaining why the transaction was invalid

error_data: Vec<u8>

Transaction-specific error data which can be interpreted by clients familiar with this transaction's family

Trait Implementations

impl Clone for TransactionResult[src]

impl Debug for TransactionResult[src]

impl Eq for TransactionResult[src]

impl Hash for TransactionResult[src]

impl PartialEq<TransactionResult> for TransactionResult[src]

impl StructuralEq for TransactionResult[src]

impl StructuralPartialEq for TransactionResult[src]

impl TryFrom<TransactionResult> for Vec<StateChange>[src]

type Error = InvalidTransactionResultConversion

The type returned in the event of a conversion error.

impl TryFrom<TransactionResult> for Vec<StateChange>[src]

type Error = InvalidTransactionResultConversion

The type returned in the event of a conversion error.

Auto Trait Implementations

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

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

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

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

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>,