servicepoint-binding-uniffi/src/errors.rs
Vinzenz Schroeter 21931f847f
Some checks failed
Rust / build (push) Has been cancelled
split servicepoint_binding_uniffi into own crate
2025-02-16 13:13:54 +01:00

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