File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use crate::{
17
17
///
18
18
/// The lifetime on this trait allows the resulting DB to borrow from the
19
19
/// connector. E.g. the connector may contain some `Db` and the resulting Db may
20
- /// contain `&Db`. This allows for (e.g.) shared caches between multiple DB
20
+ /// contain `&Db`. This allows for (e.g.) shared caches between DBs on multiple
21
21
/// threads.
22
22
pub trait DbConnect < ' a > : Sync {
23
23
/// The database type returned when connecting.
44
44
}
45
45
46
46
/// Trait for types that can create EVM instances.
47
+ ///
48
+ /// Factories should contain configuration information like chain `EXT` types,
49
+ /// and database connections. They are intended to enable parallel instantiation
50
+ /// of multiple EVMs in multiple threads sharing some configuration or backing
51
+ /// store.
52
+ ///
53
+ /// The lifetime on this trait allows the resulting EVM to borrow from the
54
+ /// connector. E.g. the connector may contain some `Db` and the resulting EVM
55
+ /// may contain `&Db`. This allows for (e.g.) shared caches between EVMs on
56
+ /// multiple threads.
47
57
pub trait EvmFactory < ' a > : DbConnect < ' a > {
48
58
/// The `Ext` type used in the resulting EVM.
49
59
type Ext : Sync ;
You can’t perform that action at this time.
0 commit comments