pub trait Transaction: Clone + Sync + Send + 'static {
    type Key: PartialOrd + Send + Sync + Clone + Hash + Eq;
    type Value: Send + Sync;
}
Expand description

Trait that defines a transaction that could be parallel executed by the scheduler. Each transaction will write to a key value storage as their side effect.

Required Associated Types§

Implementors§

source§

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

§

type Key = K

§

type Value = V