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
sourceimpl<'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
sourceimpl<'f> Clone for MessageField<'f>
impl<'f> Clone for MessageField<'f>
sourcefn clone(&self) -> MessageField<'f>
fn clone(&self) -> MessageField<'f>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'f> Debug for MessageField<'f>
impl<'f> Debug for MessageField<'f>
sourceimpl<'de: 'f, 'f> Deserialize<'de> for MessageField<'f>
impl<'de: 'f, 'f> Deserialize<'de> for MessageField<'f>
sourcefn 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
sourceimpl<'f> PartialEq<MessageField<'f>> for MessageField<'f>
impl<'f> PartialEq<MessageField<'f>> for MessageField<'f>
sourcefn eq(&self, other: &MessageField<'f>) -> bool
fn eq(&self, other: &MessageField<'f>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<'f> Serialize for MessageField<'f>
impl<'f> Serialize for MessageField<'f>
sourceimpl<'f> Type for MessageField<'f>
impl<'f> Type for MessageField<'f>
impl<'f> Eq for MessageField<'f>
impl<'f> StructuralEq for MessageField<'f>
impl<'f> StructuralPartialEq for MessageField<'f>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
sourcefn 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>,
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.
sourceimpl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
sourcefn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more