Skip to main content

parse_plain_function_response

Function parse_plain_function_response 

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

Scan a plain function response (ping/commit/rollback) for a server error. Unknown message types end the scan without error so payload shapes that were previously tolerated (responses used to go unparsed) keep working. Returns whether a server-side transaction is in progress, sampled from the final end-of-call status bit (reference protocol.pyx _process_call_status).