1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#![deny(missing_docs)]

//! # AMQP types manipulation library
//!
//! amq-protocol-types is a library aiming at providing an implementation/abstraction
//! around AMQP types.
//!
//! It implements the list of the different kind of types available, a value holder and
//! serialization.deserialization facilities.

mod types;
mod value;

pub use crate::{types::*, value::*};

/// Helpers to handle AMQP flags.
pub mod flags;
/// Generation utilities for the various AMQP types.
pub mod generation;
/// Parsing utilities for the various AMQP types.
pub mod parsing;

/// A Channel identifier
pub type ChannelId = Identifier;
/// The size of a chunk of a delivery's payload
pub type ChunkSize = types::LongUInt;
/// The number of consumers
pub type ConsumerCount = types::LongUInt;
/// A delivery tag
pub type DeliveryTag = types::LongLongUInt;
/// the size of an AMQP frame
pub type FrameSize = types::LongUInt;
/// The maximum heartbeat interval
pub type Heartbeat = types::ShortUInt;
/// An identifier (class id or method id)
pub type Identifier = types::ShortUInt;
/// The number of messages
pub type MessageCount = types::LongUInt;
/// The size of a delivery's payload
pub type PayloadSize = types::LongLongUInt;
/// A reply code (for closing channels and connections)
pub type ReplyCode = types::ShortUInt;