
original c# example equivalent works add uniffi bitvec original c# example now works with a few tweaks via uniffi
8 lines
266 B
Rust
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 },
|
|
}
|