pub struct MediaKey(pub u16);Expand description
a media key by its HID consumer usage (page 0x0C)
Tuple Fields§
§0: u16Implementations§
Source§impl MediaKey
impl MediaKey
pub const PLAY: MediaKey
pub const PAUSE: MediaKey
pub const NEXT_TRACK: MediaKey
pub const PREVIOUS_TRACK: MediaKey
pub const STOP: MediaKey
pub const PLAY_PAUSE: MediaKey
pub const MUTE: MediaKey
pub const VOLUME_UP: MediaKey
pub const VOLUME_DOWN: MediaKey
Trait Implementations§
impl Copy for MediaKey
impl Eq for MediaKey
Source§impl Ord for MediaKey
impl Ord for MediaKey
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MediaKey
impl PartialOrd for MediaKey
impl StructuralPartialEq for MediaKey
Auto Trait Implementations§
impl Freeze for MediaKey
impl RefUnwindSafe for MediaKey
impl Send for MediaKey
impl Sync for MediaKey
impl Unpin for MediaKey
impl UnsafeUnpin for MediaKey
impl UnwindSafe for MediaKey
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