Enum msgpacker::prelude::Message[][src]

pub enum Message {
    Integer(Integer),
    Nil,
    Boolean(bool),
    Float(Float),
    String(String),
    Bin(Vec<u8>),
    Array(Vec<Self>),
    Map(Vec<MapEntry>),
    Extension(Extension),
}
Expand description

MessagePack protocol type

specs

Variants

Integer(Integer)

Integer 64-bit representation

Tuple Fields of Integer

0: Integer
Nil

Null value

Boolean(bool)

Boolean value

Tuple Fields of Boolean

0: bool
Float(Float)

Float representation

Tuple Fields of Float

0: Float
String(String)

String value

Tuple Fields of String

0: String
Bin(Vec<u8>)

Binary value

Tuple Fields of Bin

0: Vec<u8>
Array(Vec<Self>)

Set of messages

Tuple Fields of Array

0: Vec<Self>

Map message -> message

Tuple Fields of Map

0: Vec<MapEntry>
Extension(Extension)

Custom extension

Tuple Fields of Extension

0: Extension

Implementations

Cast this message to a reference variant bound to the same lifetime.

The values cheaper than a pointer will be copied.

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Return the attribute, if matched

Consume the bytes required to read a new message.

Need to take R as reference until recursion resolution bug is solved: 39959

Write this message as bytes into the writer, moving the cursor to the end of the written region

Need to take W as reference until recursion resolution bug is solved: specs

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

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

This method tests for !=.

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

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.