Enum amq_protocol_types::AMQPType[][src]

pub enum AMQPType {
Show 19 variants Boolean, ShortShortInt, ShortShortUInt, ShortInt, ShortUInt, LongInt, LongUInt, LongLongInt, LongLongUInt, Float, Double, DecimalValue, ShortString, LongString, FieldArray, Timestamp, FieldTable, ByteArray, Void,
}
Expand description

Enumeration referencing all the available AMQP types

Variants

Boolean

A bool

ShortShortInt

An i8

ShortShortUInt

A u8

ShortInt

An i16

ShortUInt

A u16

LongInt

An i32

LongUInt

A u32

LongLongInt

An i64

LongLongUInt

A u64

Float

An f32

Double

An f64

DecimalValue

A decimal value represented by a scale and a value

ShortString

Deprecated, a String

LongString

A String

FieldArray

An array of AMQPValue

Timestamp

A timestamp (u64)

FieldTable

A Map<String, AMQPValue>

ByteArray

An array of bytes, RabbitMQ specific

Void

No value

Implementations

Get the AMQPType corresponding to the given id. We don’t strictly follow the spec here but rather the RabbitMQ implementation ‘s’ means ShortInt (like ‘U’) instead of ShortString ‘l’ and ‘L’ both mean LongLongInt (no LongLongUInt)

Get the id from an AMQPType We don’t strictly follow the spec here but rather the RabbitMQ implementation ShortString doesn’t have an id, we return ‘_’ instead ShortInt is supposed to be ‘U’ but we use ‘s’ LongLongUInt is supposed to be ‘L’ but we return ‘l’ as LongLongInt

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.