pub enum MprisCommand {
Play,
Pause,
PlayPause,
Stop,
Next,
Previous,
Seek(i64),
SetPosition(i64),
SetVolume(f64),
Raise,
Quit,
}Expand description
A control request arriving from an external MPRIS client (media keys, the
GNOME media widget, playerctl, …).
Variants§
Play
Pause
PlayPause
Stop
Next
Previous
Seek(i64)
Relative seek, microseconds (may be negative).
SetPosition(i64)
Absolute seek, microseconds.
SetVolume(f64)
Set volume, 0.0..=1.0 (clamped by the consumer).
Raise
Quit
Trait Implementations§
Source§impl Clone for MprisCommand
impl Clone for MprisCommand
impl Copy for MprisCommand
Source§impl Debug for MprisCommand
impl Debug for MprisCommand
Source§impl PartialEq for MprisCommand
impl PartialEq for MprisCommand
impl StructuralPartialEq for MprisCommand
Auto Trait Implementations§
impl Forget for MprisCommand
impl Freeze for MprisCommand
impl Move for MprisCommand
impl RefUnwindSafe for MprisCommand
impl Send for MprisCommand
impl Sync for MprisCommand
impl Unpin for MprisCommand
impl UnsafeUnpin for MprisCommand
impl UnwindSafe for MprisCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more