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
//! # `vld_data::lapin4` — lapin 4 (RabbitMQ) integration for `vld`
//!
//! Wrap a channel: `let channel = LapinChannel::new(channel);`
//!
//! The wrapper adds:
//!
//! - publish helper: `publish`
//! - get/decode helpers: `basic_get`, `decode_bytes`, `decode_delivery`, `decode_get`
//! - settle helpers: `ack_or_nack_decode` (ack when valid, nack when invalid),
//! `ack_decode` (ack when valid — an invalid "poison" message stays unacked),
//! `nack_decode` / `reject_decode` (nack/reject when invalid, so poison
//! messages are not left unacked)
//! - the same for `basic_get` messages: `ack_decode_get`, `nack_decode_get`, `reject_decode_get`
//!
//! All other native `lapin::Channel` methods are still available through deref.
//!
//! Published values are `Serialize + VldParse` (a `vld::schema!` struct with
//! `#[derive(serde::Serialize)]`). Feature `lapin-4`, matching your
//! `lapin` 4 dependency; `vld_data::lapin2` / `vld_data::lapin3` are the same module for the other
//! lapin majors, and any of them can be enabled together.
//!
//! ```no_run
//! use vld_data::lapin4::prelude::*;
//! ```
//!
//! Guide: <https://s00d.github.io/vld/integrations/messaging/lapin>
use lapin4 as lapin;
pub use vld;
// One implementation, compiled once per lapin major (ARCHITECTURE.md).
pub use *;
/// lapin 4 glue.