pub enum Factory {
Mangled,
Plain,
}
Expand description
A factory for different kinds of account dbs.
Variants§
Implementations§
Source§impl Factory
impl Factory
Sourcepub fn readonly<'db>(
&self,
db: &'db dyn HashDB<KeccakHasher, DBValue>,
address_hash: H256,
) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
pub fn readonly<'db>( &self, db: &'db dyn HashDB<KeccakHasher, DBValue>, address_hash: H256, ) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
Create a read-only accountdb. This will panic when write operations are called.
Sourcepub fn create<'db>(
&self,
db: &'db mut dyn HashDB<KeccakHasher, DBValue>,
address_hash: H256,
) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
pub fn create<'db>( &self, db: &'db mut dyn HashDB<KeccakHasher, DBValue>, address_hash: H256, ) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
Create a new mutable hashdb.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Factory
impl RefUnwindSafe for Factory
impl Send for Factory
impl Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more