1 2 3 4 5 6
use std::hash::Hash; /// A unique identifier that can be used both to identify a transaction. pub trait TransactionId: Copy + Eq + Hash {} impl<T: Copy + Eq + Hash> TransactionId for T {}