Enum input_synthesis::synthesizer::MediaButton
source · 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§fn eq(&self, other: &MediaButton) -> bool
fn eq(&self, other: &MediaButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MediaButton
impl PartialOrd for MediaButton
source§fn partial_cmp(&self, other: &MediaButton) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaButton) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl 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