25 lines
621 B
Rust
25 lines
621 B
Rust
use amdgpu::{utils, AmdGpuError};
|
|
use amdgpu_config::fan::ConfigError;
|
|
|
|
use crate::command::FanError;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum AmdFanError {
|
|
#[error("Vendor is not AMD")]
|
|
NotAmdCard,
|
|
#[error("No hwmod has been found in sysfs")]
|
|
NoHwMonFound,
|
|
#[error("No AMD Card has been found in sysfs")]
|
|
NoAmdCardFound,
|
|
#[error("{0}")]
|
|
AmdGpu(#[from] AmdGpuError),
|
|
#[error("{0}")]
|
|
Fan(#[from] FanError),
|
|
#[error("{0}")]
|
|
Config(#[from] ConfigError),
|
|
#[error("{0:}")]
|
|
Io(#[from] std::io::Error),
|
|
#[error("{0:}")]
|
|
AmdUtils(#[from] utils::AmdGpuError),
|
|
}
|