Skip to main content

rabbit_auto/
lib.rs

1//!
2//! Wrappers around RabbitMQ connection to indefinitely (after the first successful connection) consume,
3//! or publish without any errors. If the connection disconnects, the consumer and publisher will wait
4//! until the connection is established back again.
5//!
6// macro_rules! log_error {
7//     ($action: expr) => {
8//         if let Err(err) = $action {
9//             log::error!("{}: {}", stringify!($action), err);
10//         }
11//     };
12//     ($action: expr, $msg: expr) => {
13//         if let Err(err) = $action {
14//             log::error!("{}: {}", $msg, err);
15//         }
16//     };
17// }
18
19pub mod comms;
20pub mod config;
21pub mod consumer;
22
23pub mod exchanges;
24
25pub mod publisher;
26
27pub mod auto_ack;
28
29pub mod stream_builder;
30
31pub mod publish_properties;