pub enum MediaKeyCode {
Show 13 variants
Play,
Pause,
PlayPause,
Reverse,
Stop,
FastForward,
Rewind,
TrackNext,
TrackPrevious,
Record,
LowerVolume,
RaiseVolume,
MuteVolume,
}
Expand description
Media keys.
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 Ord for MediaKeyCode
impl Ord for MediaKeyCode
Source§fn cmp(&self, other: &MediaKeyCode) -> Ordering
fn cmp(&self, other: &MediaKeyCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MediaKeyCode
impl PartialEq for MediaKeyCode
Source§impl PartialOrd for MediaKeyCode
impl PartialOrd for MediaKeyCode
Source§impl TryFrom<MediaKeyCode> for MediaKeyCode
Available on crate feature crossterm
only.
impl TryFrom<MediaKeyCode> for MediaKeyCode
Available on crate feature
crossterm
only.Source§type Error = UnsupportedEvent
type Error = UnsupportedEvent
The type returned in the event of a conversion error.
Source§impl TryFrom<MediaKeyCode> for MediaKeyCode
Available on crate feature crossterm
only.
impl TryFrom<MediaKeyCode> for MediaKeyCode
Available on crate feature
crossterm
only.Source§type Error = UnsupportedEvent
type Error = UnsupportedEvent
The type returned in the event of a conversion error.
impl 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