9 lines
365 B
Rust
9 lines
365 B
Rust
#[derive(uniffi::Error, thiserror::Error, Debug)]
|
|
pub enum ServicePointError {
|
|
#[error("An IO error occurred: {error}")]
|
|
IoError { error: String },
|
|
#[error("The specified brightness value {value} is out of range")]
|
|
InvalidBrightness { value: u8 },
|
|
#[error("The provided packet is invalid or a conversion to packet failed")]
|
|
InvalidPacket,
|
|
}
|