fn classify_write_result(
result: WriteResult,
target_id: CatalogItemId,
attempt_state: &FrontendWriteAttemptState,
) -> WriteOutcomeExpand description
Maps a WriteResult to the outcome the statement reports, or to the one
conflict the OCC loop can retry.