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
// Project: hyperi-rustlib
// File: src/dlq/backend.rs
// Purpose: DLQ backend trait for pluggable destinations
// Language: Rust
//
// License: FSL-1.1-ALv2
// Copyright: (c) 2026 HYPERI PTY LIMITED
//! Trait for DLQ backends.
//!
//! Implement [`DlqBackend`] to add new DLQ destinations (file, Kafka, S3, etc.).
use async_trait;
use DlqEntry;
use DlqError;
/// A pluggable DLQ destination.
///
/// Implementations handle writing failed messages to a specific backend
/// (file, Kafka, S3, etc.). The [`super::Dlq`] orchestrator routes entries
/// to one or more backends based on the configured mode.