fidl_fuchsia_media_sessions2

Trait PlayerControlProxyInterface

Source
pub trait PlayerControlProxyInterface: Send + Sync {
    // Required methods
    fn play(&self) -> Result<(), Error>;
    fn pause(&self) -> Result<(), Error>;
    fn stop(&self) -> Result<(), Error>;
    fn seek(&self, position: i64) -> Result<(), Error>;
    fn skip_forward(&self) -> Result<(), Error>;
    fn skip_reverse(&self) -> Result<(), Error>;
    fn next_item(&self) -> Result<(), Error>;
    fn prev_item(&self) -> Result<(), Error>;
    fn set_playback_rate(&self, playback_rate: f32) -> Result<(), Error>;
    fn set_repeat_mode(&self, repeat_mode: RepeatMode) -> Result<(), Error>;
    fn set_shuffle_mode(&self, shuffle_on: bool) -> Result<(), Error>;
    fn bind_volume_control(
        &self,
        volume_control_request: ServerEnd<VolumeControlMarker>,
    ) -> Result<(), Error>;
}

Required Methods§

Source

fn play(&self) -> Result<(), Error>

Source

fn pause(&self) -> Result<(), Error>

Source

fn stop(&self) -> Result<(), Error>

Source

fn seek(&self, position: i64) -> Result<(), Error>

Source

fn skip_forward(&self) -> Result<(), Error>

Source

fn skip_reverse(&self) -> Result<(), Error>

Source

fn next_item(&self) -> Result<(), Error>

Source

fn prev_item(&self) -> Result<(), Error>

Source

fn set_playback_rate(&self, playback_rate: f32) -> Result<(), Error>

Source

fn set_repeat_mode(&self, repeat_mode: RepeatMode) -> Result<(), Error>

Source

fn set_shuffle_mode(&self, shuffle_on: bool) -> Result<(), Error>

Source

fn bind_volume_control( &self, volume_control_request: ServerEnd<VolumeControlMarker>, ) -> Result<(), Error>

Implementors§