Skip to main content

Crate amq_protocol_types

Crate amq_protocol_types 

Source
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§

ByteArray
An array of bytes (RabbitMQ specific)
DecimalValue
A Decimal value composed of a scale and a value
FieldArray
An array of AMQPValue
FieldTable
A Map<String, AMQPValue>
LongString
A String
ShortString
A String (deprecated)
ShortStringError
Error returned when constructing a ShortString from a string that exceeds MAX_SHORT_STRING_LENGTH

Enums§

AMQPType
Enumeration referencing all the available AMQP types
AMQPValue
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.
ChannelId
A Channel identifier
ChunkSize
The size of a chunk of a delivery’s payload
ConsumerCount
The number of consumers
DeliveryTag
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.
FrameSize
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.
LongLongInt
AMQP long-long-int (L): a signed 64-bit integer.
LongLongUInt
AMQP long-long-uint (l): an unsigned 64-bit integer.
LongUInt
AMQP long-uint (i): an unsigned 32-bit integer.
MessageCount
The number of messages
PayloadSize
The size of a delivery’s payload
ReplyCode
A reply code (for closing channels and connections)
ShortInt
AMQP short-int (U): a signed 16-bit integer.
ShortShortInt
AMQP short-short-int (b): a signed 8-bit integer.
ShortShortUInt
AMQP short-short-uint (B): an unsigned 8-bit integer.
ShortUInt
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 ().