Enum msgpacker::MessageRef [−][src]
pub enum MessageRef<'a> {
Integer(Integer),
Nil,
Boolean(bool),
Float(Float),
String(&'a str),
Bin(&'a [u8]),
Array(Vec<Self>),
Map(Vec<MapEntryRef<'a>>),
Extension(ExtensionRef<'a>),
}Expand description
MessagePack protocol type used as reference.
The lifetime of this struct must be bound to the unpack provider. If the underlying data of
the reader is dropped while this struct is still in use, some undefined behavior might
happen.
Variants
Integer(Integer)Integer 64-bit representation
Tuple Fields of Integer
0: IntegerNull value
Boolean(bool)Boolean value
Tuple Fields of Boolean
0: boolFloat(Float)Float representation
Tuple Fields of Float
0: FloatString(&'a str)String value
Tuple Fields of String
0: &'a strBinary value
Array(Vec<Self>)Set of messages
Tuple Fields of Array
0: Vec<Self>Map(Vec<MapEntryRef<'a>>)Map message -> message
Tuple Fields of Map
0: Vec<MapEntryRef<'a>>Extension(ExtensionRef<'a>)Custom extension
Tuple Fields of Extension
0: ExtensionRef<'a>Implementations
Safety
The unsafety of this function reflects ExtensionRef::into_owned. If its safety criteria
is met, then this function is safe.
Return the attribute, if matched
Return the attribute, if matched
Return the attribute, if matched
Trait Implementations
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<'a> RefUnwindSafe for MessageRef<'a>
impl<'a> Send for MessageRef<'a>
impl<'a> Sync for MessageRef<'a>
impl<'a> Unpin for MessageRef<'a>
impl<'a> UnwindSafe for MessageRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more