[−][src]Struct rustbus::message_builder::MarshalledMessage
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
impl MarshalledMessage
[src]
pub fn get_buf(&self) -> &[u8]
[src]
pub fn get_sig(&self) -> &str
[src]
pub fn new() -> Self
[src]
New message with the default little endian byteorder
pub fn with_byteorder(b: ByteOrder) -> Self
[src]
New messagebody with a chosen byteorder
pub fn unmarshall_all<'a, 'e>(self) -> Result<Message<'a, 'e>, Error>
[src]
Trait Implementations
impl Debug for MarshalledMessage
[src]
impl Default for MarshalledMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for MarshalledMessage
[src]
impl Send for MarshalledMessage
[src]
impl Sync for MarshalledMessage
[src]
impl Unpin for MarshalledMessage
[src]
impl UnwindSafe for MarshalledMessage
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,