Name Description Size Coverage
arg -
connection.rs 28781 -
connection2.rs No, we don't want our app to suddenly quit if dbus goes down 7562 -
crossroads -
dispatcher.rs 5002 -
lib.rs D-Bus bindings for Rust [D-Bus](http://dbus.freedesktop.org/) is a message bus, and is mainly used in Linux for communication between processes. It is present by default on almost every Linux distribution out there, and runs in two instances - one per session, and one system-wide. In addition to the API documentation, which you're currently reading, you might want to look in the examples directory, which contains many examples and an argument guide. README.md also contain a few quick "getting started" examples. In addition to this crate, there are two companion crates, dbus-codegen for generating Rust code from D-Bus introspection data, and dbus-tokio for integrating D-Bus with [Tokio](http://tokio.rs). However, at the time of this writing, these are far less mature than this crate. 9421 -
matchrule.rs 3066 -
message.rs 47378 -
methoddisp.rs 44330 -
objpath.rs 20829 -
prop.rs Unfortunately org.freedesktop.DBus has no properties we can use for testing, but PolicyKit should be around on most distros. 5263 -
signalargs.rs 3987 -
stdintf.rs This module contains some standard interfaces and an easy way to call them. See the [D-Bus specification](https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces) for more information about these standard interfaces. The code here was originally created by dbus-codegen. # Example ``` use dbus::{Connection, BusType}; use dbus::stdintf::org_freedesktop_dbus::Introspectable; let c = Connection::get_private(BusType::Session).unwrap(); let p = c.with_path("org.freedesktop.DBus", "/", 10000); println!("Introspection XML: {}", p.introspect().unwrap()); ``` 9024 -
strings.rs /// #Panics /// /// If given string is not valid. /// impl<S: Into<Vec<u8>>> From<S> for $t { fn from(s: S) -> $t { $t::new(s).unwrap() } } 6847 -
tree -
watch.rs pub (crate) unsafe fn from_raw(watch: *mut ffi::DBusWatch) -> Self { let mut w = Watch { fd: ffi::dbus_watch_get_unix_fd(watch), read: false, write: false}; let enabled = ffi::dbus_watch_get_enabled(watch) != 0; if enabled { let flags = ffi::dbus_watch_get_flags(watch); w.read = (flags & WatchEvent::Readable as c_uint) != 0; w.write = (flags & WatchEvent::Writable as c_uint) != 0; } w } 9713 -