Function dbus::arg::prop_cast[][src]

pub fn prop_cast<'a, T: 'static>(map: &'a PropMap, key: &str) -> Option<&'a T>
Expand description

Descend into a hashmap returned by e g “Properties::get_all” to retrieve the value of a property.

Shortcut for get + cast. Returns None both if the property does not exist, or if it was of a different type.