pub struct TpcChangeStateResponse {
pub state: u32,
pub txn_in_progress: bool,
}Expand description
Outcome of a TPC transaction change-state (func 104) round trip used by
tpc_prepare / tpc_commit / tpc_rollback. Reference tpc_change_state.pyx
_process_return_parameters reads the out state (ub4) from the PARAMETER
message; the txn-in-progress bit is sampled from the final call status.
Fields§
§state: u32The out state returned by the server (one of the TNS_TPC_TXN_STATE_*).
txn_in_progress: boolcall_status & TNS_EOCS_FLAGS_TXN_IN_PROGRESS from the last status.
Trait Implementations§
Source§impl Clone for TpcChangeStateResponse
impl Clone for TpcChangeStateResponse
Source§fn clone(&self) -> TpcChangeStateResponse
fn clone(&self) -> TpcChangeStateResponse
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 TpcChangeStateResponse
Source§impl Debug for TpcChangeStateResponse
impl Debug for TpcChangeStateResponse
Source§impl Default for TpcChangeStateResponse
impl Default for TpcChangeStateResponse
Source§fn default() -> TpcChangeStateResponse
fn default() -> TpcChangeStateResponse
Returns the “default value” for a type. Read more
impl Eq for TpcChangeStateResponse
Source§impl PartialEq for TpcChangeStateResponse
impl PartialEq for TpcChangeStateResponse
Source§fn eq(&self, other: &TpcChangeStateResponse) -> bool
fn eq(&self, other: &TpcChangeStateResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpcChangeStateResponse
Auto Trait Implementations§
impl Freeze for TpcChangeStateResponse
impl RefUnwindSafe for TpcChangeStateResponse
impl Send for TpcChangeStateResponse
impl Sync for TpcChangeStateResponse
impl Unpin for TpcChangeStateResponse
impl UnsafeUnpin for TpcChangeStateResponse
impl UnwindSafe for TpcChangeStateResponse
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