pub struct Header<'m> { /* private fields */ }
Expand description
The message header, containing all the metadata about the message.
This includes both the PrimaryHeader
and Fields
.
Implementations§
Source§impl<'m> Header<'m>
impl<'m> Header<'m>
Sourcepub fn primary(&self) -> &PrimaryHeader
pub fn primary(&self) -> &PrimaryHeader
Get a reference to the primary header.
Sourcepub fn primary_mut(&mut self) -> &mut PrimaryHeader
pub fn primary_mut(&mut self) -> &mut PrimaryHeader
Get a mutable reference to the primary header.
Sourcepub fn into_primary(self) -> PrimaryHeader
pub fn into_primary(self) -> PrimaryHeader
Get the primary header, consuming self
.
Sourcepub fn message_type(&self) -> Type
pub fn message_type(&self) -> Type
The message type
Sourcepub fn path(&self) -> Option<&ObjectPath<'m>>
pub fn path(&self) -> Option<&ObjectPath<'m>>
The object to send a call to, or the object a signal is emitted from.
Sourcepub fn interface(&self) -> Option<&InterfaceName<'m>>
pub fn interface(&self) -> Option<&InterfaceName<'m>>
The interface to invoke a method call on, or that a signal is emitted from.
Sourcepub fn member(&self) -> Option<&MemberName<'m>>
pub fn member(&self) -> Option<&MemberName<'m>>
The member, either the method name or signal name.
Sourcepub fn error_name(&self) -> Option<&ErrorName<'m>>
pub fn error_name(&self) -> Option<&ErrorName<'m>>
The name of the error that occurred, for errors.
Sourcepub fn reply_serial(&self) -> Option<NonZeroU32>
pub fn reply_serial(&self) -> Option<NonZeroU32>
The serial number of the message this message is a reply to.
Sourcepub fn destination(&self) -> Option<&BusName<'m>>
pub fn destination(&self) -> Option<&BusName<'m>>
The name of the connection this message is intended for.
Sourcepub fn sender(&self) -> Option<&UniqueName<'m>>
pub fn sender(&self) -> Option<&UniqueName<'m>>
Unique name of the sending connection.
Trait Implementations§
Source§impl<'de: 'm, 'm> Deserialize<'de> for Header<'m>
impl<'de: 'm, 'm> Deserialize<'de> for Header<'m>
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'m> Freeze for Header<'m>
impl<'m> RefUnwindSafe for Header<'m>
impl<'m> Send for Header<'m>
impl<'m> Sync for Header<'m>
impl<'m> Unpin for Header<'m>
impl<'m> UnwindSafe for Header<'m>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
Source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more