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
sourceimpl Clone for MediaKeyCode
impl Clone for MediaKeyCode
sourcefn clone(&self) -> MediaKeyCode
fn clone(&self) -> MediaKeyCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MediaKeyCode
impl Debug for MediaKeyCode
sourceimpl<'de> Deserialize<'de> for MediaKeyCode
impl<'de> Deserialize<'de> for MediaKeyCode
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for MediaKeyCode
impl Hash for MediaKeyCode
sourceimpl PartialEq<MediaKeyCode> for MediaKeyCode
impl PartialEq<MediaKeyCode> for MediaKeyCode
sourceimpl PartialOrd<MediaKeyCode> for MediaKeyCode
impl PartialOrd<MediaKeyCode> for MediaKeyCode
sourcefn partial_cmp(&self, other: &MediaKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaKeyCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl Serialize for MediaKeyCode
impl Serialize for MediaKeyCode
impl Copy for MediaKeyCode
impl Eq for MediaKeyCode
impl StructuralEq for MediaKeyCode
impl StructuralPartialEq for MediaKeyCode
Auto Trait Implementations
impl RefUnwindSafe for MediaKeyCode
impl Send for MediaKeyCode
impl Sync for MediaKeyCode
impl Unpin for MediaKeyCode
impl UnwindSafe for MediaKeyCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more