Expand description
AMQP 0-9-1 type system for Rust.
Implements the full set of AMQP scalar types (AMQPValue, AMQPType),
compound types (FieldTable, FieldArray), and wire-format
serialisation/deserialisation via the generation and parsing modules.
Modules§
- flags
- Helpers to handle AMQP flags.
- generation
- Generation utilities for the various AMQP types.
- parsing
- Parsing utilities for the various AMQP types.
Structs§
- Byte
Array - An array of bytes (RabbitMQ specific)
- Decimal
Value - A Decimal value composed of a scale and a value
- Field
Array - An array of AMQPValue
- Field
Table - A Map<String, AMQPValue>
- Long
String - A String
- Short
String - A String (deprecated)
- Short
String Error - Error returned when constructing a ShortString from a string that exceeds MAX_SHORT_STRING_LENGTH
Enums§
- AMQP
Type - Enumeration referencing all the available AMQP types
- AMQP
Value - Enumeration referencing the possible AMQP values depending on the types
Constants§
- MAX_
SHORT_ STRING_ LENGTH - Maximum byte length of a ShortString
Type Aliases§
- Boolean
- AMQP boolean (
t): a single true/false value. - Channel
Id - A Channel identifier
- Chunk
Size - The size of a chunk of a delivery’s payload
- Consumer
Count - The number of consumers
- Delivery
Tag - A delivery tag
- Double
- AMQP double (
d): a 64-bit IEEE 754 floating-point value. - Float
- AMQP float (
f): a 32-bit IEEE 754 floating-point value. - Frame
Size - the size of an AMQP frame
- Heartbeat
- The maximum heartbeat interval
- Identifier
- An identifier (class id or method id)
- LongInt
- AMQP long-int (
I): a signed 32-bit integer. - Long
Long Int - AMQP long-long-int (
L): a signed 64-bit integer. - Long
LongU Int - AMQP long-long-uint (
l): an unsigned 64-bit integer. - LongU
Int - AMQP long-uint (
i): an unsigned 32-bit integer. - Message
Count - The number of messages
- Payload
Size - The size of a delivery’s payload
- Reply
Code - A reply code (for closing channels and connections)
- Short
Int - AMQP short-int (
U): a signed 16-bit integer. - Short
Short Int - AMQP short-short-int (
b): a signed 8-bit integer. - Short
ShortU Int - AMQP short-short-uint (
B): an unsigned 8-bit integer. - ShortU
Int - AMQP short-uint (
u): an unsigned 16-bit integer. - Timestamp
- AMQP timestamp (
T): a 64-bit POSIX timestamp (seconds since the Unix epoch). - Void
- AMQP void: the absence of a value, equivalent to
().