Enum bdk::database::any::AnyBatch [−][src]
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
impl BatchOperations for AnyBatch
[src]
fn set_script_pubkey(
&mut self,
script: &Script,
keychain: KeychainKind,
child: u32
) -> Result<(), Error>
[src]
&mut self,
script: &Script,
keychain: KeychainKind,
child: u32
) -> Result<(), Error>
fn set_utxo(&mut self, utxo: &UTXO) -> Result<(), Error>
[src]
fn set_raw_tx(&mut self, transaction: &Transaction) -> Result<(), Error>
[src]
fn set_tx(&mut self, transaction: &TransactionDetails) -> Result<(), Error>
[src]
fn set_last_index(
&mut self,
keychain: KeychainKind,
value: u32
) -> Result<(), Error>
[src]
&mut self,
keychain: KeychainKind,
value: u32
) -> Result<(), Error>
fn del_script_pubkey_from_path(
&mut self,
keychain: KeychainKind,
child: u32
) -> Result<Option<Script>, Error>
[src]
&mut self,
keychain: KeychainKind,
child: u32
) -> Result<Option<Script>, Error>
fn del_path_from_script_pubkey(
&mut self,
script: &Script
) -> Result<Option<(KeychainKind, u32)>, Error>
[src]
&mut self,
script: &Script
) -> Result<Option<(KeychainKind, u32)>, Error>
fn del_utxo(&mut self, outpoint: &OutPoint) -> Result<Option<UTXO>, Error>
[src]
fn del_raw_tx(&mut self, txid: &Txid) -> Result<Option<Transaction>, Error>
[src]
fn del_tx(
&mut self,
txid: &Txid,
include_raw: bool
) -> Result<Option<TransactionDetails>, Error>
[src]
&mut self,
txid: &Txid,
include_raw: bool
) -> Result<Option<TransactionDetails>, Error>
fn del_last_index(
&mut self,
keychain: KeychainKind
) -> Result<Option<u32>, Error>
[src]
&mut self,
keychain: KeychainKind
) -> Result<Option<u32>, Error>
impl From<<MemoryDatabase as BatchDatabase>::Batch> for AnyBatch
[src]
fn from(inner: <MemoryDatabase as BatchDatabase>::Batch) -> Self
[src]
impl From<<Tree as BatchDatabase>::Batch> for AnyBatch
[src]
fn from(inner: <Tree as BatchDatabase>::Batch) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AnyBatch
[src]
impl !Send for AnyBatch
[src]
impl !Sync for AnyBatch
[src]
impl Unpin for AnyBatch
[src]
impl !UnwindSafe for AnyBatch
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,