pub struct SessionControlSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SessionControlSynchronousProxy
impl SessionControlSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SessionControlEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SessionControlEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn seek(&self, position: i64) -> Result<(), Error>
pub fn seek(&self, position: i64) -> Result<(), Error>
Seeks to a specific position in media. Implementations are free to
enter an error state if the position is out of bounds. position
is an offset from the beginning of the media.
Sourcepub fn skip_forward(&self) -> Result<(), Error>
pub fn skip_forward(&self) -> Result<(), Error>
Skips forward in media by the player’s default skip amount.
Sourcepub fn skip_reverse(&self) -> Result<(), Error>
pub fn skip_reverse(&self) -> Result<(), Error>
Skips in reverse in media by the player’s default skip amount.
Sourcepub fn next_item(&self) -> Result<(), Error>
pub fn next_item(&self) -> Result<(), Error>
Changes media to the next item (e.g. next song in playlist).
Sourcepub fn set_playback_rate(&self, playback_rate: f32) -> Result<(), Error>
pub fn set_playback_rate(&self, playback_rate: f32) -> Result<(), Error>
Sets the playback rate of the media. This will not change the playback mode.
Sourcepub fn set_repeat_mode(&self, repeat_mode: RepeatMode) -> Result<(), Error>
pub fn set_repeat_mode(&self, repeat_mode: RepeatMode) -> Result<(), Error>
Sets repeat mode to any of the supported repeat modes.
Sourcepub fn set_shuffle_mode(&self, shuffle_on: bool) -> Result<(), Error>
pub fn set_shuffle_mode(&self, shuffle_on: bool) -> Result<(), Error>
Sets shuffle mode.
Sourcepub fn bind_volume_control(
&self,
volume_control_request: ServerEnd<VolumeControlMarker>,
) -> Result<(), Error>
pub fn bind_volume_control( &self, volume_control_request: ServerEnd<VolumeControlMarker>, ) -> Result<(), Error>
Binds to the session’s volume control for control and notifications.
Sourcepub fn watch_status(
&self,
___deadline: MonotonicInstant,
) -> Result<SessionInfoDelta, Error>
pub fn watch_status( &self, ___deadline: MonotonicInstant, ) -> Result<SessionInfoDelta, Error>
Watches the session status. Leave a request hanging to receive a reply when the session status changes. The first request will be answered immediately with the current state.
Trait Implementations§
Source§impl SynchronousProxy for SessionControlSynchronousProxy
impl SynchronousProxy for SessionControlSynchronousProxy
Source§type Proxy = SessionControlProxy
type Proxy = SessionControlProxy
Source§type Protocol = SessionControlMarker
type Protocol = SessionControlMarker
Proxy
controls.