Enum bdk::database::any::AnyBatch[][src]

pub enum AnyBatch {
    Memory(<MemoryDatabase as BatchDatabase>::Batch),
    Sled(<Tree as BatchDatabase>::Batch),
}
Expand description

Type that contains any of the BatchDatabase::Batch types defined by the library

Variants

Memory(<MemoryDatabase as BatchDatabase>::Batch)

In-memory ephemeral database

Sled(<Tree as BatchDatabase>::Batch)
This is supported on crate feature key-value-db only.

Simple key-value embedded database based on [sled]

Trait Implementations

Store a script_pubkey along with its keychain and child number.

Store a LocalUtxo

Store a raw transaction

Store the metadata of a transaction

Store the last derivation index for a given keychain.

Delete a script_pubkey given the keychain and its child number.

Delete the data related to a specific script_pubkey, meaning the keychain and the child number. Read more

Delete a LocalUtxo given its [OutPoint]

Delete a raw transaction given its [Txid]

Delete the metadata of a transaction and optionally the raw transaction itself

Delete the last derivation index for a keychain.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.