pub fn ensure_streaming_compatible(
policy: UploadPolicy,
streaming: bool,
) -> Result<(), StagedStreamingConflict>Expand description
The pure staged × streaming exclusion invariant.
Streaming exists to release local bytes as quickly as possible; staged defers
exactly the T2 (original) upload that release depends on. Combining them is a
contradiction, so it is refused at confirmation and — belt and braces — the
streaming executor refuses a staged policy by construction. Returns
StagedStreamingConflict iff policy is UploadPolicy::Staged and
streaming is set.