[][src]Struct msgpack_simple::Extension

pub struct Extension {
    pub type_id: i8,
    pub value: Vec<u8>,
}

Represents an extension field

use msgpack_simple::{MsgPack, Extension};

let extension = MsgPack::Extension(Extension {
    type_id: 42,
    value: vec![0x42]
});

Fields

type_id: i8

Type of the extension field. 0-127 are free to set by the application, but MessagePack reserves the negative type IDs for predefined types.

value: Vec<u8>

Raw binary value of the extension field

Trait Implementations

impl Clone for Extension[src]

impl Debug for Extension[src]

impl Eq for Extension[src]

impl Hash for Extension[src]

impl PartialEq<Extension> for Extension[src]

impl StructuralEq for Extension[src]

impl StructuralPartialEq for Extension[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.