Skip to main content

kbd_global/
backend.rs

1//! Input backends for the global runtime.
2//!
3//! Backend selection is explicit through
4//! [`HotkeyManagerBuilder::backend()`](crate::manager::HotkeyManagerBuilder::backend).
5//! At present the runtime supports only direct evdev access.
6
7/// Backend selection for explicit configuration.
8#[derive(Debug, Clone, Copy, PartialEq, Eq)]
9pub enum Backend {
10    /// Direct evdev device access.
11    ///
12    /// Reads `/dev/input/event*` directly and therefore requires permission to
13    /// access Linux input devices.
14    Evdev,
15}