Enum lapin_async::types::AMQPType[][src]

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

Enumeration referencing all the available AMQP types

Variants

A bool

An i8

A u8

An i16

A u16

An i32

A u32

An i64

A u64

An f32

An f64

A decimal value represented by a scale and a value

Deprecated, a String

A String

An array of AMQPValue

A timestamp (u32)

A Map<String, AMQPValue>

An array of bytes, RabbitMQ specific

No value

Methods

impl AMQPType
[src]

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

impl Display for AMQPType
[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for AMQPType
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Clone for AMQPType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Serialize for AMQPType
[src]

Serialize this value into the given Serde serializer. Read more

impl Debug for AMQPType
[src]

Formats the value using the given formatter. Read more

impl PartialEq<AMQPType> for AMQPType
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for AMQPType

impl Sync for AMQPType