// SPDX-License-Identifier: BUSL-1.1
//! `CrossShardTxnMode` — how a multi-vShard write is committed.
//!
//! This is a cross-shard *transaction* concept owned by the Calvin layer (the
//! cross-shard transaction subsystem), not a wire/protocol concept. Both the
//! pgwire and native server paths consume it to decide whether a multi-shard
//! write routes through the Calvin sequencer (`Strict`) or is dispatched per
//! vShard independently (`BestEffortNonAtomic`). The pgwire `SET`/`SHOW`
//! `cross_shard_txn` session-parameter parsing/formatting lives in the pgwire
//! session module and imports this enum from here.
/// The cross-shard transaction mode for a session.