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
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
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 !=
.
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
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