servicepoint-binding-c/crates/servicepoint_binding_uniffi/src/errors.rs
2024-11-13 19:59:55 +01:00

8 lines
261 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},
}