Struct ethcore::state::backend::Basic [] [src]

pub struct Basic<H>(pub H);

A basic backend. Just wraps the given database, directly inserting into and deleting from it. Doesn't cache anything.

Trait Implementations

impl<H: AsHashDB + Send + Sync> Backend for Basic<H>
[src]

Treat the backend as a read-only hashdb.

Treat the backend as a writeable hashdb.

Add an account entry to the cache.

Add a global code cache entry. This doesn't need to worry about canonicality because it simply maps hashes to raw code and will always be correct in the absence of hash collisions. Read more

Get basic copy of the cached account. Not required to include storage. Returns 'None' if cache is disabled or if the account is not cached. Read more

Get value from a cached account. None is passed to the closure if the account entry cached is known not to exist. None is returned if the entry is not cached. Read more

Get cached code based on hash.

Note that an account with the given address is non-null.

Check whether an account is known to be empty. Returns true if known to be empty, false otherwise. Read more

Auto Trait Implementations

impl<H> Send for Basic<H> where
    H: Send

impl<H> Sync for Basic<H> where
    H: Sync