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§