[][src]Struct bdk::database::memory::MemoryDatabase

pub struct MemoryDatabase { /* fields omitted */ }

In-memory ephemeral database

This database can be used as a temporary storage for wallets that are not kept permanently on a device, or on platforms that don't provide a filesystem, like wasm32.

Once it's dropped its content will be lost.

If you are looking for a permanent storage solution, you can try with the default key-value database called [sled]. See the database module documentation for more defailts.

Implementations

impl MemoryDatabase[src]

pub fn new() -> Self[src]

Create a new empty database

Trait Implementations

impl BatchDatabase for MemoryDatabase[src]

type Batch = Self

Container for the operations

impl BatchOperations for MemoryDatabase[src]

impl Database for MemoryDatabase[src]

impl Debug for MemoryDatabase[src]

impl Default for MemoryDatabase[src]

Auto Trait Implementations

impl !RefUnwindSafe for MemoryDatabase

impl !Send for MemoryDatabase

impl !Sync for MemoryDatabase

impl Unpin for MemoryDatabase

impl !UnwindSafe for MemoryDatabase

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, 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>,