[][src]Struct rustbus::message_builder::MarshalledMessage

pub struct MarshalledMessage {
    pub body: MarshalledMessageBody,
    pub dynheader: DynamicHeader,
    pub typ: MessageType,
    pub flags: u8,
}

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: MarshalledMessageBodydynheader: DynamicHeadertyp: MessageTypeflags: 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

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, 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.