Enum account_db::Factory[][src]

pub enum Factory {
    Mangled,
    Plain,
}

A factory for different kinds of account dbs.

Variants

Mangled

Mangle hashes based on address. This is the default.

Plain

Don’t mangle hashes.

Implementations

impl Factory[src]

pub fn readonly<'db>(
    &self,
    db: &'db dyn HashDB<KeccakHasher, DBValue>,
    address_hash: H256
) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
[src]

Create a read-only accountdb. This will panic when write operations are called.

pub fn create<'db>(
    &self,
    db: &'db mut dyn HashDB<KeccakHasher, DBValue>,
    address_hash: H256
) -> Box<dyn HashDB<KeccakHasher, DBValue> + 'db>
[src]

Create a new mutable hashdb.

Trait Implementations

impl Clone for Factory[src]

impl Debug for Factory[src]

impl Default for Factory[src]

Auto Trait Implementations

impl RefUnwindSafe for Factory

impl Send for Factory

impl Sync for Factory

impl Unpin for Factory

impl UnwindSafe for Factory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,