logo

Struct zbus::MessagePrimaryHeader[][src]

pub struct MessagePrimaryHeader { /* fields omitted */ }
Expand description

The primary message header, which is present in all D-Bus messages.

This header contains all the essential information about a message, regardless of its type.

Implementations

Create a new MessagePrimaryHeader instance.

D-Bus code for bytorder encoding of the message.

Set the D-Bus code for bytorder encoding of the message.

The message type.

Set the message type.

The message flags.

Set the message flags.

The major version of the protocol the message is compliant to.

Currently only 1 is valid.

Set the major version of the protocol the message is compliant to.

Currently only 1 is valid.

The byte length of the message body.

Set the byte length of the message body.

The serial number of the message (if set).

This is used to match a reply to a method call.

Note: There is no setter provided for this in the public API since this is set by the Connection the message is sent over.

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

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)

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.