send message!

This commit is contained in:
nora 2022-02-23 20:08:03 +01:00
parent b50634841d
commit 99ce586dec
8 changed files with 169 additions and 66 deletions

View file

@ -1,6 +1,6 @@
#![warn(rust_2018_idioms)]
mod message;
pub mod message;
pub mod methods;
use parking_lot::Mutex;

View file

@ -8,13 +8,15 @@ use uuid::Uuid;
pub type Message = Arc<RawMessage>;
#[derive(Debug)]
pub struct RawMessage {
id: Uuid,
properties: methods::Table,
routing: RoutingInformation,
content: SmallVec<[Bytes; 1]>,
pub id: Uuid,
pub properties: methods::Table,
pub routing: RoutingInformation,
pub content: SmallVec<[Bytes; 1]>,
}
#[derive(Debug)]
pub struct RoutingInformation {
pub exchange: String,
pub routing_key: String,