pub enum MediaCommand {
Play,
Pause,
TogglePlayPause,
Stop,
Next,
Previous,
SeekTo(Duration),
}Expand description
A button pressed somewhere the application does not draw: a lock screen, a notification, a headset, a car.
Variants§
Play
Pause
TogglePlayPause
The one button a headset has.
Stop
Next
Needs a playlist, so it is reported and not carried out.
Previous
Needs a playlist, so it is reported and not carried out.
SeekTo(Duration)
Implementations§
Source§impl MediaCommand
impl MediaCommand
Sourcepub fn is_transport(self) -> bool
pub fn is_transport(self) -> bool
Trait Implementations§
Source§impl Clone for MediaCommand
impl Clone for MediaCommand
impl Copy for MediaCommand
Source§impl Debug for MediaCommand
impl Debug for MediaCommand
impl Eq for MediaCommand
Source§impl PartialEq for MediaCommand
impl PartialEq for MediaCommand
impl StructuralPartialEq for MediaCommand
Auto Trait Implementations§
impl Freeze for MediaCommand
impl RefUnwindSafe for MediaCommand
impl Send for MediaCommand
impl Sync for MediaCommand
impl Unpin for MediaCommand
impl UnsafeUnpin for MediaCommand
impl UnwindSafe for MediaCommand
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