pub trait RepositoryTransaction {
    type Error;
    // Required methods
    fn save(self: Box<Self>) -> BoxFuture<'static, Result<(), Self::Error>>;
    fn cancel(self: Box<Self>) -> BoxFuture<'static, Result<(), Self::Error>>;
}Expand description
A RepositoryTransaction can be saved or cancelled, after a series
of operations.
Required Associated Types§
Sourcetype Error
 
type Error
The error type used by the Self::save and Self::cancel functions