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
use ;
use crateQueueTopology;
/// A logical message topic that binds a message type to its queue topology.
///
/// Implement this on a unit struct per logical topic. The topology is defined
/// once and used by publishers, consumers, and topology declaration.
///
/// Prefer using `define_topic!` or `define_sequenced_topic!` macros which
/// handle the `OnceLock` boilerplate for static topology.
/// Extension trait for topics that require strict message ordering.
///
/// Messages sharing the same sequence key are consumed in strict order:
/// a message is only delivered after all preceding messages in the same
/// sequence have been successfully acked.
///
/// The failure behavior when a message in a sequence is permanently
/// rejected is configured via `SequenceFailure` in the topology.