fedimint_core::db

Trait IDatabaseTransaction

source
pub trait IDatabaseTransaction:
    MaybeSend
    + IDatabaseTransactionOps
    + Debug {
    // Required methods
    fn commit_tx<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_global(&self) -> bool;
}
Expand description

Fedimint database transaction

See IDatabase for more info.

Required Methods§

source

fn commit_tx<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Commit the transaction

source

fn is_global(&self) -> bool

Is global database

Implementations on Foreign Types§

source§

impl<'a, T> IDatabaseTransaction for &'a mut T

source§

fn commit_tx<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_global(&self) -> bool

source§

impl<T> IDatabaseTransaction for Box<T>

source§

fn commit_tx<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_global(&self) -> bool

Implementors§