amq_protocol_types/lib.rs
1#![deny(missing_docs)]
2
3//! # AMQP types manipulation library
4//!
5//! amq-protocol-types is a library aiming at providing an implementation/abstraction
6//! around AMQP types.
7//!
8//! It implements the list of the different kind of types available, a value holder and
9//! serialization.deserialization facilities.
10
11mod types;
12mod value;
13
14pub use crate::{types::*, value::*};
15
16/// Helpers to handle AMQP flags.
17pub mod flags;
18/// Generation utilities for the various AMQP types.
19pub mod generation;
20/// Parsing utilities for the various AMQP types.
21pub mod parsing;
22
23/// A Channel identifier
24pub type ChannelId = Identifier;
25/// The size of a chunk of a delivery's payload
26pub type ChunkSize = types::LongUInt;
27/// The number of consumers
28pub type ConsumerCount = types::LongUInt;
29/// A delivery tag
30pub type DeliveryTag = types::LongLongUInt;
31/// the size of an AMQP frame
32pub type FrameSize = types::LongUInt;
33/// The maximum heartbeat interval
34pub type Heartbeat = types::ShortUInt;
35/// An identifier (class id or method id)
36pub type Identifier = types::ShortUInt;
37/// The number of messages
38pub type MessageCount = types::LongUInt;
39/// The size of a delivery's payload
40pub type PayloadSize = types::LongLongUInt;
41/// A reply code (for closing channels and connections)
42pub type ReplyCode = types::ShortUInt;