easy-rmq-rs 1.0.2

Easy-to-use RabbitMQ library for Rust
Documentation
1
2
3
4
5
6
7
use crate::error::Result;
use async_trait::async_trait;

#[async_trait]
pub trait AmqpPublisher: Send + Sync {
    async fn publish(&self, exchange: &str, routing_key: &str, payload: &[u8]) -> Result<()>;
}