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<'de> Deserialize<'de> for MediaKeyCode
impl<'de> Deserialize<'de> for MediaKeyCode
Source§fn 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
Source§impl Display for MediaKeyCode
impl Display for MediaKeyCode
Source§impl Hash for MediaKeyCode
impl Hash for MediaKeyCode
Source§impl PartialEq for MediaKeyCode
impl PartialEq for MediaKeyCode
Source§impl PartialOrd for MediaKeyCode
impl PartialOrd for MediaKeyCode
Source§impl Serialize for MediaKeyCode
impl Serialize for MediaKeyCode
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