let _ = proxy.match_signal(
move |pc: PropertiesPropertiesChanged, _: &Connection, _: &Message| {
pc.changed_properties["Metadata"]
let _ = proxy.match_signal(
move |pc: PropertiesPropertiesChanged, _: &Connection, _: &Message| {
pc.changed_properties["Metadata"]
match key_str {
"xesam:artist" => {
// Variant holding a variant that should just be a Vec<&str> I
// believe. This is _the recommended_ way to do this by the author.
let inner_value = value?.as_iter()?.next()?.as_iter()?.next()?;
let artist = inner_value.as_str()?;
match key_str {
"xesam:artist" => {
// Variant holding a variant that should just be a Vec<&str> I
// believe. This is _the recommended_ way to do this by the author.
let inner_value = value?.as_iter()?.next()?.as_iter()?.next()?;
let artist = inner_value.as_str()?;