#[non_exhaustive]pub enum InputMode {
Master,
Slave,
Floating,
}
Expand description
The mode for input devices available.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Master
A master, virtual device
Slave
A slave, physical device, attached to a master device
Floating
A slave, physical device, not attached to a master device
Trait Implementations§
Source§impl<'a> FromValue<'a> for InputMode
impl<'a> FromValue<'a> for InputMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for InputMode
impl<'a> FromValueOptional<'a> for InputMode
Source§impl Ord for InputMode
impl Ord for InputMode
Source§impl PartialOrd for InputMode
impl PartialOrd for InputMode
Source§impl StaticType for InputMode
impl StaticType for InputMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for InputMode
impl Eq for InputMode
impl StructuralPartialEq for InputMode
Auto Trait Implementations§
impl Freeze for InputMode
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnwindSafe for InputMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.