Enum zbus::MessageField [−][src]
pub enum MessageField<'f> {
Invalid,
Path(ObjectPath<'f>),
Interface(InterfaceName<'f>),
Member(MemberName<'f>),
ErrorName(ErrorName<'f>),
ReplySerial(u32),
Destination(BusName<'f>),
Sender(UniqueName<'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>)
Tuple Fields
0: ObjectPath<'f>
The object to send a call to, or the object a signal is emitted from.
Interface(InterfaceName<'f>)
Tuple Fields
0: InterfaceName<'f>
The interface to invoke a method call on, or that a signal is emitted from.
Member(MemberName<'f>)
Tuple Fields
0: MemberName<'f>
The member, either the method name or signal name.
ErrorName(ErrorName<'f>)
Tuple Fields
0: ErrorName<'f>
The name of the error that occurred, for errors
ReplySerial(u32)
Tuple Fields
0: u32
The serial number of the message this message is a reply to.
Destination(BusName<'f>)
Tuple Fields
0: BusName<'f>
The name of the connection this message is intended for.
Sender(UniqueName<'f>)
Tuple Fields
0: UniqueName<'f>
Unique name of the sending connection.
Signature(Signature<'f>)
Tuple Fields
0: Signature<'f>
The signature of the message body.
UnixFDs(u32)
Tuple Fields
0: u32
The number of Unix file descriptors that accompany the message.
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