pub struct XaStateListCollector { /* private fields */ }Expand description
Writeable handle into MySQL’s Xa_state_list. The engine constructs
XIDs from its persistent storage and pushes each (XID, state) pair via
Self::add; the shim copies the data into a XID instance and calls
Xa_state_list::add on the underlying map.
Implementations§
Source§impl XaStateListCollector
impl XaStateListCollector
Sourcepub fn add(
&mut self,
format_id: i64,
gtrid: &[u8],
bqual: &[u8],
state: RecoverXaState,
)
pub fn add( &mut self, format_id: i64, gtrid: &[u8], bqual: &[u8], state: RecoverXaState, )
Push a single prepared XA transaction into the list. gtrid and
bqual are the X/Open distributed transaction identifier and
branch qualifier; together they must fit within XIDDATASIZE
(128 bytes) and each individually within 64 bytes per the X/Open
spec. The shim copies the data into a fresh XID and forwards
it to Xa_state_list::add.
Trait Implementations§
Auto Trait Implementations§
impl !Send for XaStateListCollector
impl !Sync for XaStateListCollector
impl Freeze for XaStateListCollector
impl RefUnwindSafe for XaStateListCollector
impl Unpin for XaStateListCollector
impl UnsafeUnpin for XaStateListCollector
impl UnwindSafe for XaStateListCollector
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