mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
17 lines
397 B
Rust
17 lines
397 B
Rust
use std::fmt;
|
|
|
|
pub enum RogError {
|
|
ParseFanLevel,
|
|
NotSupported,
|
|
}
|
|
|
|
impl fmt::Display for RogError {
|
|
// This trait requires `fmt` with this exact signature.
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
match self {
|
|
RogError::ParseFanLevel => write!(f, "Parse error"),
|
|
RogError::NotSupported => write!(f, "Not supported"),
|
|
}
|
|
}
|
|
}
|