#[non_exhaustive]pub enum RecoverXaState {
PreparedInSe,
PreparedInTc,
CommittedWithOnephase,
Committed,
RolledBack,
}Expand description
State of an externally coordinated XA transaction reported by the engine to the transaction coordinator during recovery.
Mirrors enum class enum_ha_recover_xa_state : int in
mysql-server/sql/handler.h. The NOT_FOUND = -1 sentinel exists
upstream as a lookup result, not as something an engine reports, so
it is not represented here.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PreparedInSe
PREPARED_IN_SE = 0
PreparedInTc
PREPARED_IN_TC = 1
CommittedWithOnephase
COMMITTED_WITH_ONEPHASE = 2
Committed
COMMITTED = 3
RolledBack
ROLLEDBACK = 4
Implementations§
Trait Implementations§
Source§impl Clone for RecoverXaState
impl Clone for RecoverXaState
Source§fn clone(&self) -> RecoverXaState
fn clone(&self) -> RecoverXaState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecoverXaState
Source§impl Debug for RecoverXaState
impl Debug for RecoverXaState
impl Eq for RecoverXaState
Source§impl PartialEq for RecoverXaState
impl PartialEq for RecoverXaState
Source§fn eq(&self, other: &RecoverXaState) -> bool
fn eq(&self, other: &RecoverXaState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecoverXaState
Auto Trait Implementations§
impl Freeze for RecoverXaState
impl RefUnwindSafe for RecoverXaState
impl Send for RecoverXaState
impl Sync for RecoverXaState
impl Unpin for RecoverXaState
impl UnsafeUnpin for RecoverXaState
impl UnwindSafe for RecoverXaState
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