pub trait TransactionOutput: Send + Sync {
    type T: Transaction;

    // Required methods
    fn get_writes(
        &self
    ) -> Vec<(<Self::T as Transaction>::Key, <Self::T as Transaction>::Value)> ;
    fn skip_output() -> Self;
}
Expand description

Trait for execution result of a transaction.

Required Associated Types§

source

type T: Transaction

Type of transaction and its associated key and value.

Required Methods§

source

fn get_writes( &self ) -> Vec<(<Self::T as Transaction>::Key, <Self::T as Transaction>::Value)>

Get the side effect of a transaction from its output.

source

fn skip_output() -> Self

Execution output for transactions that comes after SkipRest signal.

Implementors§

source§

impl<K, V> TransactionOutput for Output<K, V>where K: PartialOrd + Send + Sync + Clone + Hash + Eq + 'static, V: Send + Sync + Debug + Clone + 'static,

§

type T = Transaction<K, V>