Enum mpris_server::Signal
source · pub enum Signal {
Seeked {
position: Time,
},
}
Expand description
Used for emitting signals on Server::emit
and LocalServer::emit
.
Variants§
Seeked
Indicates that the track position has changed in a way that is inconsistent with the current playing state.
When this signal is not received, clients should assume that:
- When playing, the position progresses according to the rate property.
- When paused, it remains constant.
This signal does not need to be emitted when playback starts or when the track changes, unless the track is starting at an unexpected position. An expected position would be the last known one when going from Paused to Playing, and 0 when going from Stopped to Playing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more