Struct dbus::Connection [] [src]

pub struct Connection { /* fields omitted */ }

A D-Bus connection. Start here if you want to get on the D-Bus!

Methods

impl Connection
[src]

Creates a new D-Bus connection.

Sends a message over the D-Bus and waits for a reply. This is usually used for method calls.

Sends a message over the D-Bus without waiting. Useful for sending signals and method call replies.

Sends a message over the D-Bus. The resulting handler can be added to a connectionitem handler.

Get the connection's unique name.

Check if there are new incoming events

Register an object path.

Unregister an object path.

List registered object paths.

Register a name.

Release a name.

Add a match rule to match messages on the message bus.

See the unity_focused_window example for how to use this to catch signals. (The syntax of the "rule" string is specified in the D-Bus specification.)

Remove a match rule to match messages on the message bus.

Async I/O: Get an up-to-date list of file descriptors to watch.

See the Watch struct for an example.

Async I/O: Call this function whenever you detected an event on the Fd, Flags are a set of WatchEvent bits. The returned iterator will return pending items only, never block for new events.

See the Watch struct for an example.

Create a convenience struct for easier calling of many methods on the same destination and path.

Trait Implementations

impl Drop for Connection
[src]

A method called when the value goes out of scope. Read more

impl Debug for Connection
[src]

Formats the value using the given formatter.