Struct zbus::MessagePrimaryHeader
source ·
[−]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.
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MessagePrimaryHeader
impl Send for MessagePrimaryHeader
impl Sync for MessagePrimaryHeader
impl Unpin for MessagePrimaryHeader
impl UnwindSafe for MessagePrimaryHeader
Blanket Implementations
Mutably borrows from an owned value. Read more
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
pub fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error> where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
Get the signature for the implementing type. Read more