pub struct Message {
pub message_type: MessageType,
pub flags: u8,
pub serial: u32,
pub path: Option<String>,
pub interface: Option<String>,
pub member: Option<String>,
pub error_name: Option<String>,
pub reply_serial: Option<u32>,
pub destination: Option<String>,
pub sender: Option<String>,
pub body: Vec<Value>,
}Expand description
One D-Bus message: the header fields this crate understands plus the body. The body’s signature is the concatenation of its values’ signatures.
Fields§
§message_type: MessageTypeThe message kind.
flags: u8FLAG_* bits.
serial: u32The sender-assigned serial, never zero once sent.
path: Option<String>PATH: the object a call targets or a signal comes from.
interface: Option<String>INTERFACE.
member: Option<String>MEMBER: the method or signal name.
error_name: Option<String>ERROR_NAME, on error replies.
reply_serial: Option<u32>REPLY_SERIAL, on replies.
destination: Option<String>DESTINATION.
sender: Option<String>SENDER, filled in by the bus.
body: Vec<Value>The arguments.
Implementations§
Source§impl Message
impl Message
Sourcepub fn method_call(
destination: &str,
path: &str,
interface: &str,
member: &str,
body: Vec<Value>,
) -> Message
pub fn method_call( destination: &str, path: &str, interface: &str, member: &str, body: Vec<Value>, ) -> Message
A method call to member of interface on object path of destination.
Sourcepub fn signal(
path: &str,
interface: &str,
member: &str,
body: Vec<Value>,
) -> Message
pub fn signal( path: &str, interface: &str, member: &str, body: Vec<Value>, ) -> Message
A broadcast signal member of interface from object path.
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl Move for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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