mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
send message!
This commit is contained in:
parent
b50634841d
commit
99ce586dec
8 changed files with 169 additions and 66 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#![warn(rust_2018_idioms)]
|
||||
|
||||
mod message;
|
||||
pub mod message;
|
||||
pub mod methods;
|
||||
|
||||
use parking_lot::Mutex;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue