Enum zbus::MessageField[][src]

pub enum MessageField<'f> {
    Invalid,
    Path(ObjectPath<'f>),
    Interface(Str<'f>),
    Member(Str<'f>),
    ErrorName(Str<'f>),
    ReplySerial(u32),
    Destination(Str<'f>),
    Sender(Str<'f>),
    Signature(Signature<'f>),
    UnixFDs(u32),
}

The dynamic message header.

All D-Bus messages contain a set of metadata headers. Some of these headers are fixed for all types of messages, while others depend on the type of the message in question. The latter are called message fields.

Please consult the Message Format section of the D-Bus spec for more details.

Variants

Invalid

Not a valid field.

Path(ObjectPath<'f>)

The object to send a call to, or the object a signal is emitted from.

Interface(Str<'f>)

The interface to invoke a method call on, or that a signal is emitted from.

Member(Str<'f>)

The member, either the method name or signal name.

ErrorName(Str<'f>)

The name of the error that occurred, for errors

ReplySerial(u32)

The serial number of the message this message is a reply to.

Destination(Str<'f>)

The name of the connection this message is intended for.

Sender(Str<'f>)

Unique name of the sending connection.

Signature(Signature<'f>)

The signature of the message body.

UnixFDs(u32)

The number of Unix file descriptors that accompany the message.

Implementations

impl<'f> MessageField<'f>[src]

pub fn code(&self) -> MessageFieldCode[src]

Get the associated code for this field.

Trait Implementations

impl<'f> Clone for MessageField<'f>[src]

impl<'f> Debug for MessageField<'f>[src]

impl<'de: 'f, 'f> Deserialize<'de> for MessageField<'f>[src]

impl<'f> PartialEq<MessageField<'f>> for MessageField<'f>[src]

impl<'f> Serialize for MessageField<'f>[src]

impl<'f> StructuralPartialEq for MessageField<'f>[src]

impl<'f> Type for MessageField<'f>[src]

Auto Trait Implementations

impl<'f> RefUnwindSafe for MessageField<'f>

impl<'f> Send for MessageField<'f>

impl<'f> Sync for MessageField<'f>

impl<'f> Unpin for MessageField<'f>

impl<'f> UnwindSafe for MessageField<'f>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.