Struct Key

Source
pub struct Key(/* private fields */);
Expand description

An evdev key or button identifier.

This type has associated constants mimicking the preprocessor constants defined in linux/input.h. Keys will use the name of the constant when formatting with Debug or Display, if a matching constant exists. Key also implements FromStr, which will attempt to parse the evdev key name.

Note that there are aliased key codes: several associated constants of this type have the same value and will compare equal. When formatting such a Key, the name of one of the constants will be used, but which one it is is unspecified.

Implementations§

Source§

impl Key

Source

pub const KEY_RESERVED: Self

Source

pub const KEY_ESC: Self

Source

pub const KEY_1: Self

Source

pub const KEY_2: Self

Source

pub const KEY_3: Self

Source

pub const KEY_4: Self

Source

pub const KEY_5: Self

Source

pub const KEY_6: Self

Source

pub const KEY_7: Self

Source

pub const KEY_8: Self

Source

pub const KEY_9: Self

Source

pub const KEY_0: Self

Source

pub const KEY_MINUS: Self

Source

pub const KEY_EQUAL: Self

Source

pub const KEY_BACKSPACE: Self

Source

pub const KEY_TAB: Self

Source

pub const KEY_Q: Self

Source

pub const KEY_W: Self

Source

pub const KEY_E: Self

Source

pub const KEY_R: Self

Source

pub const KEY_T: Self

Source

pub const KEY_Y: Self

Source

pub const KEY_U: Self

Source

pub const KEY_I: Self

Source

pub const KEY_O: Self

Source

pub const KEY_P: Self

Source

pub const KEY_LEFTBRACE: Self

Source

pub const KEY_RIGHTBRACE: Self

Source

pub const KEY_ENTER: Self

Source

pub const KEY_LEFTCTRL: Self

Source

pub const KEY_A: Self

Source

pub const KEY_S: Self

Source

pub const KEY_D: Self

Source

pub const KEY_F: Self

Source

pub const KEY_G: Self

Source

pub const KEY_H: Self

Source

pub const KEY_J: Self

Source

pub const KEY_K: Self

Source

pub const KEY_L: Self

Source

pub const KEY_SEMICOLON: Self

Source

pub const KEY_APOSTROPHE: Self

Source

pub const KEY_GRAVE: Self

Source

pub const KEY_LEFTSHIFT: Self

Source

pub const KEY_BACKSLASH: Self

Source

pub const KEY_Z: Self

Source

pub const KEY_X: Self

Source

pub const KEY_C: Self

Source

pub const KEY_V: Self

Source

pub const KEY_B: Self

Source

pub const KEY_N: Self

Source

pub const KEY_M: Self

Source

pub const KEY_COMMA: Self

Source

pub const KEY_DOT: Self

Source

pub const KEY_SLASH: Self

Source

pub const KEY_RIGHTSHIFT: Self

Source

pub const KEY_KPASTERISK: Self

Source

pub const KEY_LEFTALT: Self

Source

pub const KEY_SPACE: Self

Source

pub const KEY_CAPSLOCK: Self

Source

pub const KEY_F1: Self

Source

pub const KEY_F2: Self

Source

pub const KEY_F3: Self

Source

pub const KEY_F4: Self

Source

pub const KEY_F5: Self

Source

pub const KEY_F6: Self

Source

pub const KEY_F7: Self

Source

pub const KEY_F8: Self

Source

pub const KEY_F9: Self

Source

pub const KEY_F10: Self

Source

pub const KEY_NUMLOCK: Self

Source

pub const KEY_SCROLLLOCK: Self

Source

pub const KEY_KP7: Self

Source

pub const KEY_KP8: Self

Source

pub const KEY_KP9: Self

Source

pub const KEY_KPMINUS: Self

Source

pub const KEY_KP4: Self

Source

pub const KEY_KP5: Self

Source

pub const KEY_KP6: Self

Source

pub const KEY_KPPLUS: Self

Source

pub const KEY_KP1: Self

Source

pub const KEY_KP2: Self

Source

pub const KEY_KP3: Self

Source

pub const KEY_KP0: Self

Source

pub const KEY_KPDOT: Self

Source

pub const KEY_ZENKAKUHANKAKU: Self

Source

pub const KEY_102ND: Self

Source

pub const KEY_F11: Self

Source

pub const KEY_F12: Self

Source

pub const KEY_RO: Self

Source

pub const KEY_KATAKANA: Self

Source

pub const KEY_HIRAGANA: Self

Source

pub const KEY_HENKAN: Self

Source

pub const KEY_KATAKANAHIRAGANA: Self

Source

pub const KEY_MUHENKAN: Self

Source

pub const KEY_KPJPCOMMA: Self

Source

pub const KEY_KPENTER: Self

Source

pub const KEY_RIGHTCTRL: Self

Source

pub const KEY_KPSLASH: Self

Source

pub const KEY_SYSRQ: Self

Source

pub const KEY_RIGHTALT: Self

Source

pub const KEY_LINEFEED: Self

Source

pub const KEY_HOME: Self

Source

pub const KEY_UP: Self

Source

pub const KEY_PAGEUP: Self

Source

pub const KEY_LEFT: Self

Source

pub const KEY_RIGHT: Self

Source

pub const KEY_END: Self

Source

pub const KEY_DOWN: Self

Source

pub const KEY_PAGEDOWN: Self

Source

pub const KEY_INSERT: Self

Source

pub const KEY_DELETE: Self

Source

pub const KEY_MACRO: Self

Source

pub const KEY_MUTE: Self

Source

pub const KEY_VOLUMEDOWN: Self

Source

pub const KEY_VOLUMEUP: Self

Source

pub const KEY_POWER: Self

Source

pub const KEY_KPEQUAL: Self

Source

pub const KEY_KPPLUSMINUS: Self

Source

pub const KEY_PAUSE: Self

Source

pub const KEY_SCALE: Self

Source

pub const KEY_KPCOMMA: Self

Source

pub const KEY_HANGEUL: Self

Source

pub const KEY_HANGUEL: Self

Source

pub const KEY_HANJA: Self

Source

pub const KEY_YEN: Self

Source

pub const KEY_LEFTMETA: Self

Source

pub const KEY_RIGHTMETA: Self

Source

pub const KEY_COMPOSE: Self

Source

pub const KEY_STOP: Self

Source

pub const KEY_AGAIN: Self

Source

pub const KEY_PROPS: Self

Source

pub const KEY_UNDO: Self

Source

pub const KEY_FRONT: Self

Source

pub const KEY_COPY: Self

Source

pub const KEY_OPEN: Self

Source

pub const KEY_PASTE: Self

Source

pub const KEY_FIND: Self

Source

pub const KEY_CUT: Self

Source

pub const KEY_HELP: Self

Source

pub const KEY_MENU: Self

Source

pub const KEY_CALC: Self

Source

pub const KEY_SETUP: Self

Source

pub const KEY_SLEEP: Self

Source

pub const KEY_WAKEUP: Self

Source

pub const KEY_FILE: Self

Source

pub const KEY_SENDFILE: Self

Source

pub const KEY_DELETEFILE: Self

Source

pub const KEY_XFER: Self

Source

pub const KEY_PROG1: Self

Source

pub const KEY_PROG2: Self

Source

pub const KEY_WWW: Self

Source

pub const KEY_MSDOS: Self

Source

pub const KEY_COFFEE: Self

Source

pub const KEY_SCREENLOCK: Self

Source

pub const KEY_ROTATE_DISPLAY: Self

Source

pub const KEY_DIRECTION: Self

Source

pub const KEY_CYCLEWINDOWS: Self

Source

pub const KEY_MAIL: Self

Source

pub const KEY_BOOKMARKS: Self

Source

pub const KEY_COMPUTER: Self

Source

pub const KEY_BACK: Self

Source

pub const KEY_FORWARD: Self

Source

pub const KEY_CLOSECD: Self

Source

pub const KEY_EJECTCD: Self

Source

pub const KEY_EJECTCLOSECD: Self

Source

pub const KEY_NEXTSONG: Self

Source

pub const KEY_PLAYPAUSE: Self

Source

pub const KEY_PREVIOUSSONG: Self

Source

pub const KEY_STOPCD: Self

Source

pub const KEY_RECORD: Self

Source

pub const KEY_REWIND: Self

Source

pub const KEY_PHONE: Self

Source

pub const KEY_ISO: Self

Source

pub const KEY_CONFIG: Self

Source

pub const KEY_HOMEPAGE: Self

Source

pub const KEY_REFRESH: Self

Source

pub const KEY_EXIT: Self

Source

pub const KEY_MOVE: Self

Source

pub const KEY_EDIT: Self

Source

pub const KEY_SCROLLUP: Self

Source

pub const KEY_SCROLLDOWN: Self

Source

pub const KEY_KPLEFTPAREN: Self

Source

pub const KEY_KPRIGHTPAREN: Self

Source

pub const KEY_NEW: Self

Source

pub const KEY_REDO: Self

Source

pub const KEY_F13: Self

Source

pub const KEY_F14: Self

Source

pub const KEY_F15: Self

Source

pub const KEY_F16: Self

Source

pub const KEY_F17: Self

Source

pub const KEY_F18: Self

Source

pub const KEY_F19: Self

Source

pub const KEY_F20: Self

Source

pub const KEY_F21: Self

Source

pub const KEY_F22: Self

Source

pub const KEY_F23: Self

Source

pub const KEY_F24: Self

Source

pub const KEY_PLAYCD: Self

Source

pub const KEY_PAUSECD: Self

Source

pub const KEY_PROG3: Self

Source

pub const KEY_PROG4: Self

Source

pub const KEY_ALL_APPLICATIONS: Self

Source

pub const KEY_DASHBOARD: Self

Source

pub const KEY_SUSPEND: Self

Source

pub const KEY_CLOSE: Self

Source

pub const KEY_PLAY: Self

Source

pub const KEY_FASTFORWARD: Self

Source

pub const KEY_BASSBOOST: Self

Source

pub const KEY_PRINT: Self

Source

pub const KEY_HP: Self

Source

pub const KEY_CAMERA: Self

Source

pub const KEY_SOUND: Self

Source

pub const KEY_QUESTION: Self

Source

pub const KEY_EMAIL: Self

Source

pub const KEY_CHAT: Self

Source

pub const KEY_CONNECT: Self

Source

pub const KEY_FINANCE: Self

Source

pub const KEY_SPORT: Self

Source

pub const KEY_SHOP: Self

Source

pub const KEY_ALTERASE: Self

Source

pub const KEY_CANCEL: Self

Source

pub const KEY_BRIGHTNESSDOWN: Self

Source

pub const KEY_BRIGHTNESSUP: Self

Source

pub const KEY_MEDIA: Self

Source

pub const KEY_SWITCHVIDEOMODE: Self

Source

pub const KEY_KBDILLUMTOGGLE: Self

Source

pub const KEY_KBDILLUMDOWN: Self

Source

pub const KEY_KBDILLUMUP: Self

Source

pub const KEY_SEND: Self

Source

pub const KEY_REPLY: Self

Source

pub const KEY_FORWARDMAIL: Self

Source

pub const KEY_SAVE: Self

Source

pub const KEY_DOCUMENTS: Self

Source

pub const KEY_BATTERY: Self

Source

pub const KEY_BLUETOOTH: Self

Source

pub const KEY_WLAN: Self

Source

pub const KEY_UWB: Self

Source

pub const KEY_UNKNOWN: Self

Source

pub const KEY_VIDEO_NEXT: Self

Source

pub const KEY_VIDEO_PREV: Self

Source

pub const KEY_BRIGHTNESS_CYCLE: Self

Source

pub const KEY_BRIGHTNESS_AUTO: Self

Source

pub const KEY_BRIGHTNESS_ZERO: Self

Source

pub const KEY_DISPLAY_OFF: Self

Source

pub const KEY_WWAN: Self

Source

pub const KEY_WIMAX: Self

Source

pub const KEY_RFKILL: Self

Source

pub const KEY_MICMUTE: Self

Source

pub const BTN_MISC: Self

Source

pub const BTN_0: Self

Source

pub const BTN_1: Self

Source

pub const BTN_2: Self

Source

pub const BTN_3: Self

Source

pub const BTN_4: Self

Source

pub const BTN_5: Self

Source

pub const BTN_6: Self

Source

pub const BTN_7: Self

Source

pub const BTN_8: Self

Source

pub const BTN_9: Self

Source

pub const BTN_MOUSE: Self

Source

pub const BTN_LEFT: Self

Source

pub const BTN_RIGHT: Self

Source

pub const BTN_MIDDLE: Self

Source

pub const BTN_SIDE: Self

Source

pub const BTN_EXTRA: Self

Source

pub const BTN_FORWARD: Self

Source

pub const BTN_BACK: Self

Source

pub const BTN_TASK: Self

Source

pub const BTN_JOYSTICK: Self

Source

pub const BTN_TRIGGER: Self

Source

pub const BTN_THUMB: Self

Source

pub const BTN_THUMB2: Self

Source

pub const BTN_TOP: Self

Source

pub const BTN_TOP2: Self

Source

pub const BTN_PINKIE: Self

Source

pub const BTN_BASE: Self

Source

pub const BTN_BASE2: Self

Source

pub const BTN_BASE3: Self

Source

pub const BTN_BASE4: Self

Source

pub const BTN_BASE5: Self

Source

pub const BTN_BASE6: Self

Source

pub const BTN_DEAD: Self

Source

pub const BTN_SOUTH: Self

Source

pub const BTN_GAMEPAD: Self

Source

pub const BTN_A: Self

Source

pub const BTN_EAST: Self

Source

pub const BTN_B: Self

Source

pub const BTN_C: Self

Source

pub const BTN_NORTH: Self

Source

pub const BTN_X: Self

Source

pub const BTN_WEST: Self

Source

pub const BTN_Y: Self

Source

pub const BTN_Z: Self

Source

pub const BTN_TL: Self

Source

pub const BTN_TR: Self

Source

pub const BTN_TL2: Self

Source

pub const BTN_TR2: Self

Source

pub const BTN_SELECT: Self

Source

pub const BTN_START: Self

Source

pub const BTN_MODE: Self

Source

pub const BTN_THUMBL: Self

Source

pub const BTN_THUMBR: Self

Source

pub const BTN_DIGI: Self

Source

pub const BTN_TOOL_PEN: Self

Source

pub const BTN_TOOL_RUBBER: Self

Source

pub const BTN_TOOL_BRUSH: Self

Source

pub const BTN_TOOL_PENCIL: Self

Source

pub const BTN_TOOL_AIRBRUSH: Self

Source

pub const BTN_TOOL_FINGER: Self

Source

pub const BTN_TOOL_MOUSE: Self

Source

pub const BTN_TOOL_LENS: Self

Source

pub const BTN_TOOL_QUINTTAP: Self

Source

pub const BTN_STYLUS3: Self

Source

pub const BTN_TOUCH: Self

Source

pub const BTN_STYLUS: Self

Source

pub const BTN_STYLUS2: Self

Source

pub const BTN_TOOL_DOUBLETAP: Self

Source

pub const BTN_TOOL_TRIPLETAP: Self

Source

pub const BTN_TOOL_QUADTAP: Self

Source

pub const BTN_WHEEL: Self

Source

pub const BTN_GEAR_DOWN: Self

Source

pub const BTN_GEAR_UP: Self

Source

pub const KEY_OK: Self

Source

pub const KEY_SELECT: Self

Source

pub const KEY_GOTO: Self

Source

pub const KEY_CLEAR: Self

Source

pub const KEY_POWER2: Self

Source

pub const KEY_OPTION: Self

Source

pub const KEY_INFO: Self

Source

pub const KEY_TIME: Self

Source

pub const KEY_VENDOR: Self

Source

pub const KEY_ARCHIVE: Self

Source

pub const KEY_PROGRAM: Self

Source

pub const KEY_CHANNEL: Self

Source

pub const KEY_FAVORITES: Self

Source

pub const KEY_EPG: Self

Source

pub const KEY_PVR: Self

Source

pub const KEY_MHP: Self

Source

pub const KEY_LANGUAGE: Self

Source

pub const KEY_TITLE: Self

Source

pub const KEY_SUBTITLE: Self

Source

pub const KEY_ANGLE: Self

Source

pub const KEY_FULL_SCREEN: Self

Source

pub const KEY_ZOOM: Self

Source

pub const KEY_MODE: Self

Source

pub const KEY_KEYBOARD: Self

Source

pub const KEY_ASPECT_RATIO: Self

Source

pub const KEY_SCREEN: Self

Source

pub const KEY_PC: Self

Source

pub const KEY_TV: Self

Source

pub const KEY_TV2: Self

Source

pub const KEY_VCR: Self

Source

pub const KEY_VCR2: Self

Source

pub const KEY_SAT: Self

Source

pub const KEY_SAT2: Self

Source

pub const KEY_CD: Self

Source

pub const KEY_TAPE: Self

Source

pub const KEY_RADIO: Self

Source

pub const KEY_TUNER: Self

Source

pub const KEY_PLAYER: Self

Source

pub const KEY_TEXT: Self

Source

pub const KEY_DVD: Self

Source

pub const KEY_AUX: Self

Source

pub const KEY_MP3: Self

Source

pub const KEY_AUDIO: Self

Source

pub const KEY_VIDEO: Self

Source

pub const KEY_DIRECTORY: Self

Source

pub const KEY_LIST: Self

Source

pub const KEY_MEMO: Self

Source

pub const KEY_CALENDAR: Self

Source

pub const KEY_RED: Self

Source

pub const KEY_GREEN: Self

Source

pub const KEY_YELLOW: Self

Source

pub const KEY_BLUE: Self

Source

pub const KEY_CHANNELUP: Self

Source

pub const KEY_CHANNELDOWN: Self

Source

pub const KEY_FIRST: Self

Source

pub const KEY_LAST: Self

Source

pub const KEY_AB: Self

Source

pub const KEY_NEXT: Self

Source

pub const KEY_RESTART: Self

Source

pub const KEY_SLOW: Self

Source

pub const KEY_SHUFFLE: Self

Source

pub const KEY_BREAK: Self

Source

pub const KEY_PREVIOUS: Self

Source

pub const KEY_DIGITS: Self

Source

pub const KEY_TEEN: Self

Source

pub const KEY_TWEN: Self

Source

pub const KEY_VIDEOPHONE: Self

Source

pub const KEY_GAMES: Self

Source

pub const KEY_ZOOMIN: Self

Source

pub const KEY_ZOOMOUT: Self

Source

pub const KEY_ZOOMRESET: Self

Source

pub const KEY_WORDPROCESSOR: Self

Source

pub const KEY_EDITOR: Self

Source

pub const KEY_SPREADSHEET: Self

Source

pub const KEY_GRAPHICSEDITOR: Self

Source

pub const KEY_PRESENTATION: Self

Source

pub const KEY_DATABASE: Self

Source

pub const KEY_NEWS: Self

Source

pub const KEY_VOICEMAIL: Self

Source

pub const KEY_ADDRESSBOOK: Self

Source

pub const KEY_MESSENGER: Self

Source

pub const KEY_DISPLAYTOGGLE: Self

Source

pub const KEY_BRIGHTNESS_TOGGLE: Self

Source

pub const KEY_SPELLCHECK: Self

Source

pub const KEY_LOGOFF: Self

Source

pub const KEY_DOLLAR: Self

Source

pub const KEY_EURO: Self

Source

pub const KEY_FRAMEBACK: Self

Source

pub const KEY_FRAMEFORWARD: Self

Source

pub const KEY_CONTEXT_MENU: Self

Source

pub const KEY_MEDIA_REPEAT: Self

Source

pub const KEY_10CHANNELSUP: Self

Source

pub const KEY_10CHANNELSDOWN: Self

Source

pub const KEY_IMAGES: Self

Source

pub const KEY_NOTIFICATION_CENTER: Self

Source

pub const KEY_PICKUP_PHONE: Self

Source

pub const KEY_HANGUP_PHONE: Self

Source

pub const KEY_DEL_EOL: Self

Source

pub const KEY_DEL_EOS: Self

Source

pub const KEY_INS_LINE: Self

Source

pub const KEY_DEL_LINE: Self

Source

pub const KEY_FN: Self

Source

pub const KEY_FN_ESC: Self

Source

pub const KEY_FN_F1: Self

Source

pub const KEY_FN_F2: Self

Source

pub const KEY_FN_F3: Self

Source

pub const KEY_FN_F4: Self

Source

pub const KEY_FN_F5: Self

Source

pub const KEY_FN_F6: Self

Source

pub const KEY_FN_F7: Self

Source

pub const KEY_FN_F8: Self

Source

pub const KEY_FN_F9: Self

Source

pub const KEY_FN_F10: Self

Source

pub const KEY_FN_F11: Self

Source

pub const KEY_FN_F12: Self

Source

pub const KEY_FN_1: Self

Source

pub const KEY_FN_2: Self

Source

pub const KEY_FN_D: Self

Source

pub const KEY_FN_E: Self

Source

pub const KEY_FN_F: Self

Source

pub const KEY_FN_S: Self

Source

pub const KEY_FN_B: Self

Source

pub const KEY_FN_RIGHT_SHIFT: Self

Source

pub const KEY_BRL_DOT1: Self

Source

pub const KEY_BRL_DOT2: Self

Source

pub const KEY_BRL_DOT3: Self

Source

pub const KEY_BRL_DOT4: Self

Source

pub const KEY_BRL_DOT5: Self

Source

pub const KEY_BRL_DOT6: Self

Source

pub const KEY_BRL_DOT7: Self

Source

pub const KEY_BRL_DOT8: Self

Source

pub const KEY_BRL_DOT9: Self

Source

pub const KEY_BRL_DOT10: Self

Source

pub const KEY_NUMERIC_0: Self

Source

pub const KEY_NUMERIC_1: Self

Source

pub const KEY_NUMERIC_2: Self

Source

pub const KEY_NUMERIC_3: Self

Source

pub const KEY_NUMERIC_4: Self

Source

pub const KEY_NUMERIC_5: Self

Source

pub const KEY_NUMERIC_6: Self

Source

pub const KEY_NUMERIC_7: Self

Source

pub const KEY_NUMERIC_8: Self

Source

pub const KEY_NUMERIC_9: Self

Source

pub const KEY_NUMERIC_STAR: Self

Source

pub const KEY_NUMERIC_POUND: Self

Source

pub const KEY_NUMERIC_A: Self

Source

pub const KEY_NUMERIC_B: Self

Source

pub const KEY_NUMERIC_C: Self

Source

pub const KEY_NUMERIC_D: Self

Source

pub const KEY_CAMERA_FOCUS: Self

Source

pub const KEY_WPS_BUTTON: Self

Source

pub const KEY_TOUCHPAD_TOGGLE: Self

Source

pub const KEY_TOUCHPAD_ON: Self

Source

pub const KEY_TOUCHPAD_OFF: Self

Source

pub const KEY_CAMERA_ZOOMIN: Self

Source

pub const KEY_CAMERA_ZOOMOUT: Self

Source

pub const KEY_CAMERA_UP: Self

Source

pub const KEY_CAMERA_DOWN: Self

Source

pub const KEY_CAMERA_LEFT: Self

Source

pub const KEY_CAMERA_RIGHT: Self

Source

pub const KEY_ATTENDANT_ON: Self

Source

pub const KEY_ATTENDANT_OFF: Self

Source

pub const KEY_ATTENDANT_TOGGLE: Self

Source

pub const KEY_LIGHTS_TOGGLE: Self

Source

pub const BTN_DPAD_UP: Self

Source

pub const BTN_DPAD_DOWN: Self

Source

pub const BTN_DPAD_LEFT: Self

Source

pub const BTN_DPAD_RIGHT: Self

Source

pub const KEY_ALS_TOGGLE: Self

Source

pub const KEY_ROTATE_LOCK_TOGGLE: Self

Source

pub const KEY_REFRESH_RATE_TOGGLE: Self

Source

pub const KEY_BUTTONCONFIG: Self

Source

pub const KEY_TASKMANAGER: Self

Source

pub const KEY_JOURNAL: Self

Source

pub const KEY_CONTROLPANEL: Self

Source

pub const KEY_APPSELECT: Self

Source

pub const KEY_SCREENSAVER: Self

Source

pub const KEY_VOICECOMMAND: Self

Source

pub const KEY_ASSISTANT: Self

Source

pub const KEY_KBD_LAYOUT_NEXT: Self

Source

pub const KEY_EMOJI_PICKER: Self

Source

pub const KEY_DICTATE: Self

Source

pub const KEY_CAMERA_ACCESS_ENABLE: Self

Source

pub const KEY_CAMERA_ACCESS_DISABLE: Self

Source

pub const KEY_CAMERA_ACCESS_TOGGLE: Self

Source

pub const KEY_ACCESSIBILITY: Self

Source

pub const KEY_DO_NOT_DISTURB: Self

Source

pub const KEY_BRIGHTNESS_MIN: Self

Source

pub const KEY_BRIGHTNESS_MAX: Self

Source

pub const KEY_KBDINPUTASSIST_PREV: Self

Source

pub const KEY_KBDINPUTASSIST_NEXT: Self

Source

pub const KEY_KBDINPUTASSIST_PREVGROUP: Self

Source

pub const KEY_KBDINPUTASSIST_NEXTGROUP: Self

Source

pub const KEY_KBDINPUTASSIST_ACCEPT: Self

Source

pub const KEY_KBDINPUTASSIST_CANCEL: Self

Source

pub const KEY_RIGHT_UP: Self

Source

pub const KEY_RIGHT_DOWN: Self

Source

pub const KEY_LEFT_UP: Self

Source

pub const KEY_LEFT_DOWN: Self

Source

pub const KEY_ROOT_MENU: Self

Source

pub const KEY_MEDIA_TOP_MENU: Self

Source

pub const KEY_NUMERIC_11: Self

Source

pub const KEY_NUMERIC_12: Self

Source

pub const KEY_AUDIO_DESC: Self

Source

pub const KEY_3D_MODE: Self

Source

pub const KEY_NEXT_FAVORITE: Self

Source

pub const KEY_STOP_RECORD: Self

Source

pub const KEY_PAUSE_RECORD: Self

Source

pub const KEY_VOD: Self

Source

pub const KEY_UNMUTE: Self

Source

pub const KEY_FASTREVERSE: Self

Source

pub const KEY_SLOWREVERSE: Self

Source

pub const KEY_DATA: Self

Source

pub const KEY_ONSCREEN_KEYBOARD: Self

Source

pub const KEY_PRIVACY_SCREEN_TOGGLE: Self

Source

pub const KEY_SELECTIVE_SCREENSHOT: Self

Source

pub const KEY_NEXT_ELEMENT: Self

Source

pub const KEY_PREVIOUS_ELEMENT: Self

Source

pub const KEY_AUTOPILOT_ENGAGE_TOGGLE: Self

Source

pub const KEY_MARK_WAYPOINT: Self

Source

pub const KEY_SOS: Self

Source

pub const KEY_NAV_CHART: Self

Source

pub const KEY_FISHING_CHART: Self

Source

pub const KEY_SINGLE_RANGE_RADAR: Self

Source

pub const KEY_DUAL_RANGE_RADAR: Self

Source

pub const KEY_RADAR_OVERLAY: Self

Source

pub const KEY_TRADITIONAL_SONAR: Self

Source

pub const KEY_CLEARVU_SONAR: Self

Source

pub const KEY_SIDEVU_SONAR: Self

Source

pub const KEY_NAV_INFO: Self

Source

pub const KEY_BRIGHTNESS_MENU: Self

Source

pub const KEY_MACRO1: Self

Source

pub const KEY_MACRO2: Self

Source

pub const KEY_MACRO3: Self

Source

pub const KEY_MACRO4: Self

Source

pub const KEY_MACRO5: Self

Source

pub const KEY_MACRO6: Self

Source

pub const KEY_MACRO7: Self

Source

pub const KEY_MACRO8: Self

Source

pub const KEY_MACRO9: Self

Source

pub const KEY_MACRO10: Self

Source

pub const KEY_MACRO11: Self

Source

pub const KEY_MACRO12: Self

Source

pub const KEY_MACRO13: Self

Source

pub const KEY_MACRO14: Self

Source

pub const KEY_MACRO15: Self

Source

pub const KEY_MACRO16: Self

Source

pub const KEY_MACRO17: Self

Source

pub const KEY_MACRO18: Self

Source

pub const KEY_MACRO19: Self

Source

pub const KEY_MACRO20: Self

Source

pub const KEY_MACRO21: Self

Source

pub const KEY_MACRO22: Self

Source

pub const KEY_MACRO23: Self

Source

pub const KEY_MACRO24: Self

Source

pub const KEY_MACRO25: Self

Source

pub const KEY_MACRO26: Self

Source

pub const KEY_MACRO27: Self

Source

pub const KEY_MACRO28: Self

Source

pub const KEY_MACRO29: Self

Source

pub const KEY_MACRO30: Self

Source

pub const KEY_MACRO_RECORD_START: Self

Source

pub const KEY_MACRO_RECORD_STOP: Self

Source

pub const KEY_MACRO_PRESET_CYCLE: Self

Source

pub const KEY_MACRO_PRESET1: Self

Source

pub const KEY_MACRO_PRESET2: Self

Source

pub const KEY_MACRO_PRESET3: Self

Source

pub const KEY_KBD_LCD_MENU1: Self

Source

pub const KEY_KBD_LCD_MENU2: Self

Source

pub const KEY_KBD_LCD_MENU3: Self

Source

pub const KEY_KBD_LCD_MENU4: Self

Source

pub const KEY_KBD_LCD_MENU5: Self

Source

pub const BTN_TRIGGER_HAPPY: Self

Source

pub const BTN_TRIGGER_HAPPY1: Self

Source

pub const BTN_TRIGGER_HAPPY2: Self

Source

pub const BTN_TRIGGER_HAPPY3: Self

Source

pub const BTN_TRIGGER_HAPPY4: Self

Source

pub const BTN_TRIGGER_HAPPY5: Self

Source

pub const BTN_TRIGGER_HAPPY6: Self

Source

pub const BTN_TRIGGER_HAPPY7: Self

Source

pub const BTN_TRIGGER_HAPPY8: Self

Source

pub const BTN_TRIGGER_HAPPY9: Self

Source

pub const BTN_TRIGGER_HAPPY10: Self

Source

pub const BTN_TRIGGER_HAPPY11: Self

Source

pub const BTN_TRIGGER_HAPPY12: Self

Source

pub const BTN_TRIGGER_HAPPY13: Self

Source

pub const BTN_TRIGGER_HAPPY14: Self

Source

pub const BTN_TRIGGER_HAPPY15: Self

Source

pub const BTN_TRIGGER_HAPPY16: Self

Source

pub const BTN_TRIGGER_HAPPY17: Self

Source

pub const BTN_TRIGGER_HAPPY18: Self

Source

pub const BTN_TRIGGER_HAPPY19: Self

Source

pub const BTN_TRIGGER_HAPPY20: Self

Source

pub const BTN_TRIGGER_HAPPY21: Self

Source

pub const BTN_TRIGGER_HAPPY22: Self

Source

pub const BTN_TRIGGER_HAPPY23: Self

Source

pub const BTN_TRIGGER_HAPPY24: Self

Source

pub const BTN_TRIGGER_HAPPY25: Self

Source

pub const BTN_TRIGGER_HAPPY26: Self

Source

pub const BTN_TRIGGER_HAPPY27: Self

Source

pub const BTN_TRIGGER_HAPPY28: Self

Source

pub const BTN_TRIGGER_HAPPY29: Self

Source

pub const BTN_TRIGGER_HAPPY30: Self

Source

pub const BTN_TRIGGER_HAPPY31: Self

Source

pub const BTN_TRIGGER_HAPPY32: Self

Source

pub const BTN_TRIGGER_HAPPY33: Self

Source

pub const BTN_TRIGGER_HAPPY34: Self

Source

pub const BTN_TRIGGER_HAPPY35: Self

Source

pub const BTN_TRIGGER_HAPPY36: Self

Source

pub const BTN_TRIGGER_HAPPY37: Self

Source

pub const BTN_TRIGGER_HAPPY38: Self

Source

pub const BTN_TRIGGER_HAPPY39: Self

Source

pub const BTN_TRIGGER_HAPPY40: Self

Source

pub const KEY_MAX: Self

Source

pub const KEY_CNT: Self

Source§

impl Key

Source

pub const fn from_raw(code: u16) -> Self

Source

pub const fn raw(self) -> u16

Source

pub fn name(self) -> Option<VariantName>

Trait Implementations§

Source§

impl BitValue for Key

Source§

const MAX: Self = Self::MAX

The largest value that can be stored in a BitSet. Read more
Source§

impl Clone for Key

Source§

fn clone(&self) -> Key

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Key

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for Key

Source§

type Err = UnknownVariant

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Key

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Key

Source§

fn cmp(&self, other: &Key) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Key

Source§

fn eq(&self, other: &Key) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Key

Source§

fn partial_cmp(&self, other: &Key) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Key

Source§

impl Eq for Key

Source§

impl StructuralPartialEq for Key

Auto Trait Implementations§

§

impl Freeze for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnwindSafe for Key

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.