Skip to main content

parse_tpc_switch_response

Function parse_tpc_switch_response 

Source
pub fn parse_tpc_switch_response(
    payload: &[u8],
    capabilities: ClientCapabilities,
) -> Result<TpcSwitchResponse>
Expand description

Parse a full-XA transaction-switch response (reference tpc_switch.pyx _process_return_parameters plus the base.pyx message loop). Captures the returned transaction context (PARAMETER message) and the txn-in-progress bit (last call status). Server errors are surfaced as ProtocolError.