pub struct TpcSwitchResponse {
pub context: Vec<u8>,
pub txn_in_progress: bool,
pub sessionless_state: Option<SessionlessTxnState>,
}Expand description
Outcome of a TPC transaction-switch (func 103) round trip used by
tpc_begin (START) and tpc_end (DETACH). Reference tpc_switch.pyx
_process_return_parameters captures the application value and the returned
transaction context; the txn-in-progress bit is sampled from the final call
status (reference protocol.pyx _process_call_status).
Fields§
§context: Vec<u8>The transaction context returned by the server on begin; must be stored verbatim and echoed on end/prepare/commit/rollback.
txn_in_progress: boolcall_status & TNS_EOCS_FLAGS_TXN_IN_PROGRESS from the last status.
sessionless_state: Option<SessionlessTxnState>Any sessionless-state update carried by a transaction-id key/value pair (only relevant on the sessionless path, retained for shared parsing).
Trait Implementations§
Source§impl Clone for TpcSwitchResponse
impl Clone for TpcSwitchResponse
Source§fn clone(&self) -> TpcSwitchResponse
fn clone(&self) -> TpcSwitchResponse
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 moreSource§impl Debug for TpcSwitchResponse
impl Debug for TpcSwitchResponse
Source§impl Default for TpcSwitchResponse
impl Default for TpcSwitchResponse
Source§fn default() -> TpcSwitchResponse
fn default() -> TpcSwitchResponse
Returns the “default value” for a type. Read more
impl Eq for TpcSwitchResponse
Source§impl PartialEq for TpcSwitchResponse
impl PartialEq for TpcSwitchResponse
Source§fn eq(&self, other: &TpcSwitchResponse) -> bool
fn eq(&self, other: &TpcSwitchResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpcSwitchResponse
Auto Trait Implementations§
impl Freeze for TpcSwitchResponse
impl RefUnwindSafe for TpcSwitchResponse
impl Send for TpcSwitchResponse
impl Sync for TpcSwitchResponse
impl Unpin for TpcSwitchResponse
impl UnsafeUnpin for TpcSwitchResponse
impl UnwindSafe for TpcSwitchResponse
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