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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! The outbox helper handle (ADR-019 §1; the outbox section of
//! core-contract.md).
//!
//! A helper over queues, not a separate mechanism: the tx-side
//! transactional enqueue is `TxHandle::outbox_enqueue_tx` (ADR-014);
//! this handle carries the auto-commit enqueue and the delivery
//! worker entry point.
use Value;
use crateResult;
use crateBoxedFuture;
use crateJobHandle;
use crateEnqueueOpts;
/// The delivery callable [`Outbox::run_once`] takes.
///
/// A consumer-supplied async callable taking [`Box<dyn JobHandle>`],
/// returning the boxed future of `Result<()>` (ADR-019 §5). Object
/// safety encoded as a named one-method trait object. Outcome
/// posture: `Ok` ⇒ the engine acks the claim; `Err(e)` ⇒ the engine
/// retries with the queue's curve (`retry(err, None)`).
///
/// No engine-issued heartbeat inside delivery — the boxed
/// [`JobHandle`]'s own `heartbeat` remains available to the closure;
/// renewal inside the deadline is the consumer's obligation.
/// The outbox-scoped handle for one outbox name.
///
/// The backing queue is derived engine-side under the reserved prefix
/// (`__alkstore_outbox:{name}`) — reachable only through this surface
/// and `outbox_enqueue_tx`; enqueue stamps the outbox's derived
/// `QueueOpts` set (60/5/5, ADR-010 §3).