pub enum Token<'a> {
Uuid(Uuid),
Platform(&'a str),
Name(&'a str),
AxisMapping {
from: u16,
to: AxisOrBtn,
input: AxisRange,
output: AxisRange,
inverted: bool,
},
ButtonMapping {
from: u16,
to: AxisOrBtn,
output: AxisRange,
},
HatMapping {
hat: u16,
direction: u16,
to: AxisOrBtn,
output: AxisRange,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Token<'a>
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnwindSafe for Token<'a>
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