[][src]Enum lapin_futures_tls_internal::lapin::types::AMQPType

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

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 (u32)

FieldTable

A Map<String, AMQPValue>

ByteArray

An array of bytes, RabbitMQ specific

Void

No value

Methods

impl AMQPType[src]

pub fn from_id(id: char) -> Option<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)

pub fn get_id(&self) -> char[src]

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]

impl Serialize for AMQPType[src]

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

impl Debug for AMQPType[src]

impl PartialEq<AMQPType> for AMQPType[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for AMQPType[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for AMQPType

impl Sync for AMQPType

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T