1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! The staging capability [`crate::OutboxPublisher`] composes with (SRS §19.6, §20, ADR 0033
//! Amendment D).
use ;
/// Staging a serialized message in the caller's own transaction — the routed half of
/// [`crate::OutboxPublisher`].
///
/// `Tx` is the provider's transaction type: `sqlx::Transaction<'_, Postgres>` for
/// `reliar-store-postgres`. It is a **type parameter** precisely so this crate names no storage
/// type (SRS §19.6, ADR 0033 §2 + Amendment D §2), and one implementor may support several.
///
/// Deliberately **not** a method on [`crate::OutboxStore`]: staging takes a transaction handle
/// the claim side never sees, `OutboxStore` is already published, and a GAT `type Tx<'a>` would
/// have to spell `&'a mut Transaction<'c, _>` and reintroduce the invariance ADR 0033 §2 rejected.