rzmq 0.5.20

High performance, CPU and memory efficient, fully asynchronous, safe pure-Rust implementation of ZeroMQ (ØMQ) messaging with io_uring and TCP Cork acceleration on Linux.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Message-related types (`Msg`, `MsgFlags`, `Metadata`, `Blob`).

mod blob;
mod flags;
mod metadata;
mod msg;

pub use blob::Blob;
pub use flags::MsgFlags;
pub use metadata::Metadata;
pub use msg::Msg;

use smallvec::SmallVec;

/// A stack-allocated batch of message frames for a single logical ZMQ message.
/// 99% of ZMQ messages fit within 4 frames (Identity, Delimiter, Payload, …).
pub type FrameBatch = SmallVec<[Msg; 2]>;