pub struct Extension {
pub type_id: i8,
pub value: Vec<u8>,
}Expand description
Represents an extension field
use msgpack_simple::{MsgPack, Extension};
let extension = MsgPack::Extension(Extension {
type_id: 42,
value: vec![0x42]
});Fields§
§type_id: i8Type 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 Eq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more