1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
//! Handle for dealing with XA transactions.

use crate::HdbError;
use dist_tx::rm::{ErrorCode, RmError};

mod c_resource_manager;
pub(crate) use self::c_resource_manager::new_resource_manager;

impl From<HdbError> for RmError {
    fn from(error: HdbError) -> Self {
        Self::new(ErrorCode::RmError, format!("{:?}", error))
    }
}