Skip to main content

kbd_evdev/
error.rs

1//! Error types for the evdev backend.
2//!
3//! Today the crate exposes only uinput-related failures. Device discovery and
4//! polling are intentionally best-effort: devices can appear, disappear, or be
5//! dropped from the poll set without surfacing a rich typed error, and callers
6//! observe that through `DeviceManager` behavior and `PollResult` values.
7
8/// Errors from the evdev backend.
9#[derive(Debug, thiserror::Error)]
10pub enum Error {
11    /// Failed to create or use the uinput virtual device.
12    #[error("uinput virtual device error")]
13    Uinput(#[source] std::io::Error),
14}