Enum zbus::MessageField
source · 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>)
The object to send a call to, or the object a signal is emitted from.
Interface(InterfaceName<'f>)
The interface to invoke a method call on, or that a signal is emitted from.
Member(MemberName<'f>)
The member, either the method name or signal name.
ErrorName(ErrorName<'f>)
The name of the error that occurred, for errors
ReplySerial(u32)
The serial number of the message this message is a reply to.
Destination(BusName<'f>)
The name of the connection this message is intended for.
Sender(UniqueName<'f>)
Unique name of the sending connection.
Signature(Signature<'f>)
The signature of the message body.
UnixFDs(u32)
The number of Unix file descriptors that accompany the message.
Implementations§
source§impl<'f> MessageField<'f>
impl<'f> MessageField<'f>
sourcepub fn code(&self) -> MessageFieldCode
pub fn code(&self) -> MessageFieldCode
Get the associated code for this field.
Trait Implementations§
source§impl<'f> Clone for MessageField<'f>
impl<'f> Clone for MessageField<'f>
source§fn clone(&self) -> MessageField<'f>
fn clone(&self) -> MessageField<'f>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'f> Debug for MessageField<'f>
impl<'f> Debug for MessageField<'f>
source§impl<'de: 'f, 'f> Deserialize<'de> for MessageField<'f>
impl<'de: 'f, 'f> Deserialize<'de> for MessageField<'f>
source§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>,
source§impl<'f> PartialEq for MessageField<'f>
impl<'f> PartialEq for MessageField<'f>
source§impl<'f> Serialize for MessageField<'f>
impl<'f> Serialize for MessageField<'f>
source§impl<'f> Type for MessageField<'f>
impl<'f> Type for MessageField<'f>
impl<'f> Eq for MessageField<'f>
impl<'f> StructuralPartialEq for MessageField<'f>
Auto Trait Implementations§
impl<'f> Freeze for MessageField<'f>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)