get_property

Function get_property 

Source
pub async fn get_property<T>(
    player: &mut Player<'_>,
    property: &str,
) -> Result<T, Box<dyn Error>>
where T: for<'a> Get<'a> + 'static,
Expand description

Retrieves the value of an MPRIS property. Available properties can be found here.

ยงErrors

May return an Err variant if:

  • An invalid type was provided for the property
  • An invalid property was provided