checkout_core 0.0.147

core traits and structs for the checkout_controller crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use async_trait::async_trait;

use crate::error::Error;

#[async_trait]
pub trait TransactionController {
    async fn start_transaction(&mut self) -> Result<(), Error> {
        Ok(())
    }

    async fn commit_transaction(&mut self) -> Result<(), Error> {
        Ok(())
    }

    async fn abort_transaction(&mut self) -> Result<(), Error> {
        Ok(())
    }
}