#[repr(C)]pub struct dpiXid {
pub formatId: c_long,
pub globalTransactionId: *const c_char,
pub globalTransactionIdLength: u32,
pub branchQualifier: *const c_char,
pub branchQualifierLength: u32,
}Expand description
This structure is used for identifying a TPC (two-phase commit) transaction. It
is used by the TPC functions dpiConn_tpcBegin(),
dpiConn_tpcCommit(), dpiConn_tpcEnd(),
dpiConn_tpcForget(), dpiConn_tpcPrepare() and
dpiConn_tpcRollback().
Fields§
§formatId: c_longAn integer identifying the format the transaction id is expected to take. A value of -1 implies that the XID value is NULL.
globalTransactionId: *const c_charSpecifies the global transaction identifier of the XID.
globalTransactionIdLength: u32Specifies the length of the [dpiXid.globalTransactionId] member, in
bytes. The maximum supported length is 64 bytes.
branchQualifier: *const c_charSpecifies the branch qualifier of the XID.
branchQualifierLength: u32Specifies the length of the [dpiXid.branchQualifier] member, in
bytes. The maximum supported length is 64 bytes.
Trait Implementations§
impl Copy for dpiXid
Auto Trait Implementations§
impl Freeze for dpiXid
impl RefUnwindSafe for dpiXid
impl !Send for dpiXid
impl !Sync for dpiXid
impl Unpin for dpiXid
impl UnwindSafe for dpiXid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more