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),
}
Expand description

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.

Tuple Fields of Path

0: ObjectPath<'f>
Interface(Str<'f>)

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

Tuple Fields of Interface

0: Str<'f>
Member(Str<'f>)

The member, either the method name or signal name.

Tuple Fields of Member

0: Str<'f>
ErrorName(Str<'f>)

The name of the error that occurred, for errors

Tuple Fields of ErrorName

0: Str<'f>
ReplySerial(u32)

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

Tuple Fields of ReplySerial

0: u32
Destination(Str<'f>)

The name of the connection this message is intended for.

Tuple Fields of Destination

0: Str<'f>
Sender(Str<'f>)

Unique name of the sending connection.

Tuple Fields of Sender

0: Str<'f>
Signature(Signature<'f>)

The signature of the message body.

Tuple Fields of Signature

0: Signature<'f>
UnixFDs(u32)

The number of Unix file descriptors that accompany the message.

Tuple Fields of UnixFDs

0: u32

Implementations

Get the associated code for this field.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

A DeserializeSeed implementation for this type.

Get a deserializer compatible with this signature.

Get the signature for the implementing type. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.