Struct mpris_player::MprisPlayer
source · [−]pub struct MprisPlayer { /* private fields */ }Implementations
sourceimpl MprisPlayer
impl MprisPlayer
pub fn new(
mpris_name: String,
identify: String,
desktop_entry: String
) -> Arc<Self>
pub fn property_changed<T: 'static>(&self, name: String, value: T) where
T: RefArg,
pub fn set_supported_mime_types(&self, value: Vec<String>)
pub fn set_supported_uri_schemes(&self, value: Vec<String>)
pub fn set_can_quit(&self, value: bool)
pub fn set_can_raise(&self, value: bool)
pub fn set_can_set_fullscreen(&self, value: bool)
pub fn set_has_track_list(&self, value: bool)
pub fn set_playback_status(&self, value: PlaybackStatus)
pub fn set_loop_status(&self, value: LoopStatus)
pub fn set_metadata(&self, metadata: Metadata)
pub fn set_position(&self, value: i64)
pub fn set_minimum_rate(&self, value: f64)
pub fn set_maximum_rate(&self, value: f64)
pub fn set_can_go_next(&self, value: bool)
pub fn set_can_go_previous(&self, value: bool)
pub fn set_can_play(&self, value: bool)
pub fn set_can_pause(&self, value: bool)
pub fn set_can_seek(&self, value: bool)
pub fn set_can_control(&self, value: bool)
pub fn connect_raise<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_quit<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_next<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_previous<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_pause<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_play_pause<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_stop<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_play<F: FnMut() + 'static>(&self, callback: F)
pub fn connect_seek<F: FnMut(i64) + 'static>(&self, callback: F)
pub fn connect_open_uri<F: FnMut(&str) + 'static>(&self, callback: F)
pub fn connect_fullscreen<F: FnMut(bool) + 'static>(&self, callback: F)
pub fn connect_loop_status<F: FnMut(LoopStatus) + 'static>(&self, callback: F)
pub fn connect_rate<F: FnMut(f64) + 'static>(&self, callback: F)
pub fn connect_shuffle<F: FnMut(bool) + 'static>(&self, callback: F)
pub fn connect_volume<F: FnMut(f64) + 'static>(&self, callback: F)
Trait Implementations
sourceimpl Debug for MprisPlayer
impl Debug for MprisPlayer
sourceimpl OrgMprisMediaPlayer2 for MprisPlayer
impl OrgMprisMediaPlayer2 for MprisPlayer
type Err = MethodErr
fn raise(&self) -> Result<(), Self::Err>
fn quit(&self) -> Result<(), Self::Err>
fn get_can_quit(&self) -> Result<bool, Self::Err>
fn get_fullscreen(&self) -> Result<bool, Self::Err>
fn set_fullscreen(&self, value: bool) -> Result<(), Self::Err>
fn get_can_set_fullscreen(&self) -> Result<bool, Self::Err>
fn get_can_raise(&self) -> Result<bool, Self::Err>
fn get_has_track_list(&self) -> Result<bool, Self::Err>
fn get_identity(&self) -> Result<String, Self::Err>
fn get_desktop_entry(&self) -> Result<String, Self::Err>
fn get_supported_uri_schemes(&self) -> Result<Vec<String>, Self::Err>
fn get_supported_mime_types(&self) -> Result<Vec<String>, Self::Err>
sourceimpl OrgMprisMediaPlayer2Player for MprisPlayer
impl OrgMprisMediaPlayer2Player for MprisPlayer
type Err = MethodErr
fn next(&self) -> Result<(), Self::Err>
fn previous(&self) -> Result<(), Self::Err>
fn pause(&self) -> Result<(), Self::Err>
fn play_pause(&self) -> Result<(), Self::Err>
fn stop(&self) -> Result<(), Self::Err>
fn play(&self) -> Result<(), Self::Err>
fn seek(&self, offset: i64) -> Result<(), Self::Err>
fn set_position(
&self,
_track_id: Path<'_>,
position: i64
) -> Result<(), Self::Err>
fn open_uri(&self, uri: &str) -> Result<(), Self::Err>
fn get_playback_status(&self) -> Result<String, Self::Err>
fn get_loop_status(&self) -> Result<String, Self::Err>
fn set_loop_status(&self, value: String) -> Result<(), Self::Err>
fn get_rate(&self) -> Result<f64, Self::Err>
fn set_rate(&self, value: f64) -> Result<(), Self::Err>
fn get_shuffle(&self) -> Result<bool, Self::Err>
fn set_shuffle(&self, value: bool) -> Result<(), Self::Err>
fn get_metadata(
&self
) -> Result<HashMap<String, Variant<Box<dyn RefArg + 'static>>>, Self::Err>
fn get_volume(&self) -> Result<f64, Self::Err>
fn set_volume(&self, value: f64) -> Result<(), Self::Err>
fn get_position(&self) -> Result<i64, Self::Err>
fn get_minimum_rate(&self) -> Result<f64, Self::Err>
fn get_maximum_rate(&self) -> Result<f64, Self::Err>
fn get_can_go_next(&self) -> Result<bool, Self::Err>
fn get_can_go_previous(&self) -> Result<bool, Self::Err>
fn get_can_play(&self) -> Result<bool, Self::Err>
fn get_can_pause(&self) -> Result<bool, Self::Err>
fn get_can_seek(&self) -> Result<bool, Self::Err>
fn get_can_control(&self) -> Result<bool, Self::Err>
Auto Trait Implementations
impl !RefUnwindSafe for MprisPlayer
impl !Send for MprisPlayer
impl !Sync for MprisPlayer
impl Unpin for MprisPlayer
impl !UnwindSafe for MprisPlayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more