File: properties_msgitem.rs

package info (click to toggle)
rust-dbus 0.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 712 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
use dbus::ffidisp::Connection;
use dbus::arg::messageitem::Props;

fn main() {
    let c = Connection::new_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())
}