use std::io;
use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum EvdevError {
#[error("listing input devices")]
Enumerate(#[source] io::Error),
#[error("opening {path}")]
Open {
path: PathBuf,
#[source]
source: io::Error,
},
#[error("no usable pointer, touch or keyboard device found")]
NoDevices,
}