pub enum MediaButton {
VolumeUp,
VolumeDown,
MicMute,
FactoryReset,
Pause,
CameraDisable,
}
Expand description
The buttons supported by media_button_event()
.
Variants§
Trait Implementations§
Source§impl From<MediaButton> for ConsumerControlButton
impl From<MediaButton> for ConsumerControlButton
Source§fn from(synthesizer_button: MediaButton) -> Self
fn from(synthesizer_button: MediaButton) -> Self
Converts to this type from the input type.
Source§impl Ord for MediaButton
impl Ord for MediaButton
Source§fn cmp(&self, other: &MediaButton) -> Ordering
fn cmp(&self, other: &MediaButton) -> 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 MediaButton
impl PartialEq for MediaButton
Source§impl PartialOrd for MediaButton
impl PartialOrd for MediaButton
impl Eq for MediaButton
impl StructuralPartialEq for MediaButton
Auto Trait Implementations§
impl Freeze for MediaButton
impl RefUnwindSafe for MediaButton
impl Send for MediaButton
impl Sync for MediaButton
impl Unpin for MediaButton
impl UnwindSafe for MediaButton
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