Enum crossterm::event::MediaKeyCode
source · pub enum MediaKeyCode {
Show 13 variants
Play,
Pause,
PlayPause,
Reverse,
Stop,
FastForward,
Rewind,
TrackNext,
TrackPrevious,
Record,
LowerVolume,
RaiseVolume,
MuteVolume,
}
Expand description
Represents a media key (as part of KeyCode::Media
).
Variants§
Play
Play media key.
Pause
Pause media key.
PlayPause
Play/Pause media key.
Reverse
Reverse media key.
Stop
Stop media key.
FastForward
Fast-forward media key.
Rewind
Rewind media key.
TrackNext
Next-track media key.
TrackPrevious
Previous-track media key.
Record
Record media key.
LowerVolume
Lower-volume media key.
RaiseVolume
Raise-volume media key.
MuteVolume
Mute media key.
Trait Implementations§
source§impl Clone for MediaKeyCode
impl Clone for MediaKeyCode
source§fn clone(&self) -> MediaKeyCode
fn clone(&self) -> MediaKeyCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaKeyCode
impl Debug for MediaKeyCode
source§impl Hash for MediaKeyCode
impl Hash for MediaKeyCode
source§impl PartialEq<MediaKeyCode> for MediaKeyCode
impl PartialEq<MediaKeyCode> for MediaKeyCode
source§fn eq(&self, other: &MediaKeyCode) -> bool
fn eq(&self, other: &MediaKeyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MediaKeyCode> for MediaKeyCode
impl PartialOrd<MediaKeyCode> for MediaKeyCode
source§fn partial_cmp(&self, other: &MediaKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaKeyCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more