Struct evdev::Key

source ·
#[repr(transparent)]
pub struct Key(pub u16);
Available on Unix only.
Expand description

Scancodes for key presses.

Values correspond to /usr/include/linux/input-event-codes.h

Each associated constant for this struct represents a distinct key.

Tuple Fields§

§0: u16

Implementations§

source§

impl Key

source

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

source

pub const fn code(self) -> u16

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_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_DIRECTION: Self = _

source

pub const KEY_ROTATE_DISPLAY: 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_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_DISPLAY_OFF: Self = _

source

pub const KEY_WWAN: Self = _

source

pub const KEY_RFKILL: Self = _

source

pub const KEY_MICMUTE: 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_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_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_EAST: Self = _

source

pub const BTN_C: Self = _

source

pub const BTN_NORTH: Self = _

source

pub const BTN_WEST: 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_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_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_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_ZOOM: Self = _

source

pub const KEY_FULL_SCREEN: Self = _

source

pub const KEY_MODE: Self = _

source

pub const KEY_KEYBOARD: 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_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_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_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_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_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 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 = _

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

Returns a copy 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<'de> Deserialize<'de> for Key

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl EvdevEnum for Key

source§

impl FromStr for Key

§

type Err = EnumParseError

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 + PartialOrd,

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

impl PartialEq for Key

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Key

Available on crate feature serde only.
source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. 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> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. 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> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

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

§

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> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

§

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>,

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,