Struct tetcore_database::MemDb [−][src]
Expand description
This implements Database
as an in-memory hash map. commit
is not atomic.
Implementations
Trait Implementations
Commit the transaction
to the database atomically. Any further calls to get
or lookup
will reflect the new state. Read more
Retrieve the value previously stored against key
or None
if
key
is not currently in the database. Read more
Retrieve the first preimage previously store
d for hash
or None
if no preimage is
currently stored. Read more
Commit the transaction
to the database atomically. Any further calls to get
or lookup
will reflect the new state. Read more
Call f
with the value previously stored against key
. Read more
Set the value of key
in col
to value
, replacing anything that is there currently.
Call f
with the preimage stored for hash
and return the result, or None
if no preimage
is currently stored. Read more
Store the preimage
of hash
into the database, so that it may be looked up later with
Database::lookup
. This may be called multiple times, but Database::lookup
but subsequent
calls will ignore preimage
and simply increase the number of references on hash
. Read more
Auto Trait Implementations
impl<H> !RefUnwindSafe for MemDb<H>
impl<H> UnwindSafe for MemDb<H> where
H: UnwindSafe,