pub type StateGenerator<S> = Arc<dyn Fn(TransactionId, u64) -> Vec<S> + Send + Sync + 'static>;
struct StateGenerator<S> { /* private fields */ }