1mod attribute;
2pub mod utils;
3
4use std::path::{Path, PathBuf};
5
6pub use attribute::*;
7
8pub trait Device: Sized {
9 fn open<P: AsRef<Path>>(device_node: P) -> anyhow::Result<Self>;
10}
11
12pub trait FindableDevice {
13 fn find_device_nodes() -> Vec<PathBuf>;
14}