Struct exonum::storage::MemoryDB [] [src]

pub struct MemoryDB { /* fields omitted */ }

Database implementation that stores all the data in memory.

It's mainly used for testing and not designed to be efficient.

Methods

impl MemoryDB
[src]

[src]

Creates a new, empty database.

Trait Implementations

impl Default for MemoryDB
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for MemoryDB
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MemoryDB
[src]

[src]

Formats the value using the given formatter.

impl Database for MemoryDB
[src]

[src]

Creates a new reference to the database as Box<Database>.

[src]

Creates a new snapshot of the database from its current state. Read more

[src]

Atomically applies a sequence of patch changes to the database. Read more

[src]

Creates a new fork of the database from its current state. Read more

impl Snapshot for MemoryDB
[src]

[src]

Returns a value as raw vector of bytes corresponding to the specified key or None if does not exist. Read more

[src]

Returns true if the snapshot contains a value for the specified key. Read more

[src]

Returns an iterator over the entries of the snapshot in ascending order starting from the specified key. The iterator element type is (&[u8], &[u8]). Read more