Struct dbus::Connection [] [src]

pub struct Connection {
    // some fields omitted
}

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

Methods

impl Connection
[src]

fn get_private(bus: BusType) -> Result<ConnectionError>

Creates a new D-Bus connection.

fn send_with_reply_and_block(&self, msg: Message, timeout_ms: i32) -> Result<MessageError>

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

fn send(&self, msg: Message) -> Result<u32()>

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

fn unique_name(&self) -> String

fn iter(&self, timeout_ms: i32) -> ConnectionItems

fn register_object_path(&self, path: &str) -> Result<()Error>

fn unregister_object_path(&self, path: &str)

fn list_registered_object_paths(&self, path: &str) -> Vec<String>

fn register_name(&self, name: &str, flags: u32) -> Result<RequestNameReplyError>

fn release_name(&self, name: &str) -> Result<ReleaseNameReplyError>

fn add_match(&self, rule: &str) -> Result<()Error>

fn remove_match(&self, rule: &str) -> Result<()Error>

Trait Implementations

impl Drop for Connection
[src]

fn drop(&mut self)

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

impl Debug for Connection
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.