[−][src]Struct dbus_message_parser::MessageHeader
This represents a DBus message header.
Implementations
impl MessageHeader[src]
pub fn get_path(&self) -> Option<&str>[src]
Get the Path, if there is one in the header field.
pub fn get_interface(&self) -> Option<&str>[src]
Get the Interface, if there is one in the header field.
pub fn has_interface(&self) -> bool[src]
It is true if the message contains an Interface in the header fields.
pub fn get_member(&self) -> Option<&str>[src]
headers Get the Member, if there is one in the header field.
pub fn has_member(&self) -> bool[src]
It is true if the message contains an Member in the header fields.
pub fn get_error_name(&self) -> Option<&str>[src]
Get the ErrorName, if there is one in the header field.
pub fn has_error_name(&self) -> bool[src]
It is true if the message contains an ErrorName in the header fields.
pub fn get_destination(&self) -> Option<&str>[src]
Get the Destination, if there is one in the header field.
pub fn get_sender(&self) -> Option<&str>[src]
Get the Sender, if there is one in the header field.
pub fn get_serial(&self) -> u32[src]
Get the serial number.
pub fn get_reply_serial(&self) -> Option<u32>[src]
Get the ReplySerial number, if there is one in the header field.
pub fn get_signature(&self) -> Option<&str>[src]
Get the Signature, if there is one in the header field.
pub fn has_signature(&self) -> bool[src]
It is true if the message contains an Signature in the header fields.
pub fn method_return(&self) -> Result<Message, Message>[src]
Create a message return from this Message.
Only works if this Message is a MethodCall.
pub fn unknown_property(&self, property: &str) -> Message[src]
Create a unknown property error message from this Message.
pub fn unknown_path(&self) -> Option<Message>[src]
Create a unknown path error message from this Message.
pub fn unknown_interface(&self) -> Option<Message>[src]
Create a unknown interface error message from this Message.
pub fn unknown_member(&self) -> Option<Message>[src]
Create a unknown member error message from this Message.
pub fn invalid_args(&self, reason: &str) -> Message[src]
Create an invalid args error message from this Message.
pub fn error(&self, name: String, message: String) -> Message[src]
Create an error message from this Message.
pub fn get_type(&self) -> MessageType[src]
Get the message type.
Trait Implementations
impl Clone for MessageHeader[src]
fn clone(&self) -> MessageHeader[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for MessageHeader[src]
impl Eq for MessageHeader[src]
impl Ord for MessageHeader[src]
fn cmp(&self, other: &MessageHeader) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<MessageHeader> for MessageHeader[src]
fn eq(&self, other: &MessageHeader) -> bool[src]
fn ne(&self, other: &MessageHeader) -> bool[src]
impl PartialOrd<MessageHeader> for MessageHeader[src]
fn partial_cmp(&self, other: &MessageHeader) -> Option<Ordering>[src]
fn lt(&self, other: &MessageHeader) -> bool[src]
fn le(&self, other: &MessageHeader) -> bool[src]
fn gt(&self, other: &MessageHeader) -> bool[src]
fn ge(&self, other: &MessageHeader) -> bool[src]
impl StructuralEq for MessageHeader[src]
impl StructuralPartialEq for MessageHeader[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageHeader
impl Send for MessageHeader
impl Sync for MessageHeader
impl Unpin for MessageHeader
impl UnwindSafe for MessageHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,