fn end_reason(
result: &Result<ExecuteResponse, AdapterError>,
) -> StatementEndedExecutionReasonExpand description
Maps an execution outcome to the reason to record for it.
The responses whose end is logged elsewhere are filtered out first: their
StatementEndedExecutionReason conversion panics, and this runs for every
statement the session task executes, so that panic would take down the
connection.