Struct dbus::Message [] [src]

pub struct Message { /* fields omitted */ }

A D-Bus message. A message contains some headers (e g sender and destination address) and a list of MessageItems.

Methods

impl Message
[src]

[src]

Creates a new method call message.

[src]

Creates a new method call message.

[src]

Creates a new signal message.

[src]

Creates a new signal message.

[src]

Creates a method reply for this method call.

[src]

Creates a method return (reply) for this method call.

[src]

The old way to create a new error reply

[src]

Creates a new error reply

[src]

Get the MessageItems that make up the message.

Note: use iter_init or get1/get2/etc instead for faster access to the arguments. This method is provided for backwards compatibility.

[src]

Get the D-Bus serial of a message, if one was specified.

[src]

Get the serial of the message this message is a reply to, if present.

[src]

Add one or more MessageItems to this Message.

Note: using append1, append2 or append3 might be faster, especially for large arrays. This method is provided for backwards compatibility.

[src]

Appends one MessageItem to a message. Use in builder style: e g m.method_return().append(7i32)

Note: using append1, append2 or append3 might be faster, especially for large arrays. This method is provided for backwards compatibility.

[src]

Appends one argument to this message. Use in builder style: e g m.method_return().append1(7i32)

[src]

Appends two arguments to this message. Use in builder style: e g m.method_return().append2(7i32, 6u8)

[src]

Appends three arguments to this message. Use in builder style: e g m.method_return().append3(7i32, 6u8, true)

[src]

Appends RefArgs to this message. Use in builder style: e g m.method_return().append_ref(&[7i32, 6u8, true])

[src]

Gets the first argument from the message, if that argument is of type G1. Returns None if there are not enough arguments, or if types don't match.

[src]

Gets the first two arguments from the message, if those arguments are of type G1 and G2. Returns None if there are not enough arguments, or if types don't match.

[src]

Gets the first three arguments from the message, if those arguments are of type G1, G2 and G3. Returns None if there are not enough arguments, or if types don't match.

[src]

Gets the first four arguments from the message, if those arguments are of type G1, G2, G3 and G4. Returns None if there are not enough arguments, or if types don't match.

[src]

Gets the first five arguments from the message, if those arguments are of type G1, G2, G3 and G4. Returns None if there are not enough arguments, or if types don't match. Note: If you need more than five arguments, use iter_init instead.

[src]

Gets the first argument from the message, if that argument is of type G1.

Returns a TypeMismatchError if there are not enough arguments, or if types don't match.

[src]

Gets the first two arguments from the message, if those arguments are of type G1 and G2.

Returns a TypeMismatchError if there are not enough arguments, or if types don't match.

[src]

Gets the first three arguments from the message, if those arguments are of type G1, G2 and G3.

Returns a TypeMismatchError if there are not enough arguments, or if types don't match.

[src]

Gets the first four arguments from the message, if those arguments are of type G1, G2, G3 and G4.

Returns a TypeMismatchError if there are not enough arguments, or if types don't match.

[src]

Gets the first five arguments from the message, if those arguments are of type G1, G2, G3, G4 and G5.

Returns a TypeMismatchError if there are not enough arguments, or if types don't match. Note: If you need more than five arguments, use iter_init instead.

[src]

Returns a struct for retreiving the arguments from a message. Supersedes get_items().

[src]

Gets the MessageType of the Message.

[src]

Gets the name of the connection that originated this message.

[src]

Returns a tuple of (Message type, Path, Interface, Member) of the current message.

[src]

Gets the object path this Message is being sent to.

[src]

Gets the interface this Message is being sent to.

[src]

Gets the interface member being called.

[src]

When the remote end returns an error, the message itself is correct but its contents is an error. This method will transform such an error to a D-Bus Error or otherwise return the original message.

Trait Implementations

impl Send for Message
[src]

impl Drop for Message
[src]

[src]

Executes the destructor for this type. Read more

impl Debug for Message
[src]

[src]

Formats the value using the given formatter.