pub enum MediaKey {
PlayPause,
NextTrack,
PrevTrack,
VolumeUp,
VolumeDown,
Mute,
}Expand description
A media/volume key.
Every backend reaches these through a dedicated OS mechanism — NX system-defined keys on macOS, MPRIS/XF86 keys on Linux, dedicated media virtual keys on Windows — rather than an ordinary keyboard chord.
Variants§
PlayPause
Toggle play/pause.
NextTrack
Skip to the next track.
PrevTrack
Go back to the previous track.
VolumeUp
Increase system volume.
VolumeDown
Decrease system volume.
Mute
Toggle system mute.
Trait Implementations§
impl Copy for MediaKey
impl Eq for MediaKey
impl StructuralPartialEq for MediaKey
Auto Trait Implementations§
impl Freeze for MediaKey
impl RefUnwindSafe for MediaKey
impl Send for MediaKey
impl Sync for MediaKey
impl Unpin for MediaKey
impl UnsafeUnpin for MediaKey
impl UnwindSafe for MediaKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.