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 for MediaKeyCode
impl PartialEq 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 for MediaKeyCode
impl PartialOrd 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 moreimpl Copy for MediaKeyCode
impl Eq for MediaKeyCode
impl StructuralPartialEq for MediaKeyCode
Auto Trait Implementations§
impl Freeze for MediaKeyCode
impl RefUnwindSafe for MediaKeyCode
impl Send for MediaKeyCode
impl Sync for MediaKeyCode
impl Unpin for MediaKeyCode
impl UnwindSafe for MediaKeyCode
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