Module dbus_bytestream::connection [] [src]

Deals with creating and using connections to dbus-daemon. The primary type of interest is the Connection struct

Examples

use dbus_bytestream::connection::Connection;
use dbus_bytestream::message;

let conn = Connection::connect_system().unwrap();
let msg = message::create_method_call(
    "org.freedesktop.DBus", // destination
    "/org/freedesktop/DBus", // path
    "org.freedesktop.DBus", //interface
    "RequestName" // method
);
msg = msg.add_arg(&"com.test.foobar")
         .add_arg(&(0 as u32));
let reply = conn.call_sync(msg);
println!("{:?}", reply);

Structs

Connection

Enums

Error