cadmus_core/device/wifi/
error.rs1use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum WifiError {
8 #[error("Failed to read device info: {0}")]
10 DeviceInfo(String),
11
12 #[error("Kernel module operation failed: {0}")]
14 KernelModule(String),
15
16 #[error("WiFi interface operation failed: {0}")]
18 Interface(String),
19
20 #[error("ioctl operation failed: {0}")]
22 Ioctl(String),
23
24 #[error("Configuration error: {0}")]
26 Config(String),
27
28 #[error("I/O error: {0}")]
30 Io(#[from] std::io::Error),
31
32 #[error("Failed to acquire WiFi lock: {0}")]
34 Lock(String),
35}