tank-core 0.31.0

Core of Tank: the Rust data layer. This is intended to be used by drivers to implement a backend.
Documentation
1
2
3
4
5
6
7
8
9
use crate::{Executor, Result};

/// Transactional `Executor` with `commit` and `rollback`.
pub trait Transaction<'c>: Executor {
    /// Commit the outstanding changes.
    fn commit(self) -> impl Future<Output = Result<()>>;
    /// Rollback any uncommitted changes.
    fn rollback(self) -> impl Future<Output = Result<()>>;
}