dbus 0.6.4

Bindings to D-Bus, which is a bus commonly used on Linux for inter-process communication.
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate dbus;

use dbus::{Connection, BusType, Props};

fn main() {
    let c = Connection::get_private(BusType::System).unwrap();
    let p = Props::new(&c, "org.freedesktop.PolicyKit1", "/org/freedesktop/PolicyKit1/Authority",
        "org.freedesktop.PolicyKit1.Authority", 10000);
    println!("BackendVersion: {:?}", p.get("BackendVersion").unwrap())
}