Skip to main content

Transaction

Trait Transaction 

Source
pub trait Transaction: Send + Sync {
    // Required methods
    fn get_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        board_id: &'life1 BoardId,
        task_id: &'life2 TaskId,
    ) -> Pin<Box<dyn Future<Output = Result<Task, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn save_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        board_id: &'life1 BoardId,
        task: &'life2 Task,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn commit<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn rollback<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn get_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, board_id: &'life1 BoardId, task_id: &'life2 TaskId, ) -> Pin<Box<dyn Future<Output = Result<Task, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn save_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, board_id: &'life1 BoardId, task: &'life2 Task, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn commit<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn rollback<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§