Struct rustbus::message_builder::MarshalledMessage [−][src]
pub struct MarshalledMessage { pub body: MarshalledMessageBody, pub dynheader: DynamicHeader, pub typ: MessageType, pub flags: u8, }
Expand description
Message received by a connection or in preparation before being sent over a connection.
This represents a message while it is being built before it is sent over the connection. The body accepts everything that implements the Marshal trait (e.g. all basic types, strings, slices, Hashmaps,…..) And you can of course write an Marshal impl for your own datastructures. See the doc on the Marshal trait what you have to look out for when doing this though.
Fields
body: MarshalledMessageBody
dynheader: DynamicHeader
typ: MessageType
flags: u8
Implementations
New messagebody with a chosen byteorder
Reserves space for additional
bytes in the internal buffer. This is useful to reduce the amount of allocations done while marshalling,
if you can predict somewhat accuratly how many bytes you will be marshalling.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MarshalledMessage
impl Send for MarshalledMessage
impl Sync for MarshalledMessage
impl Unpin for MarshalledMessage
impl UnwindSafe for MarshalledMessage