servicepoint-binding-csharp/crates/servicepoint_binding_uniffi/src/errors.rs
Vinzenz Schroeter 960f12ebc5 make BitVec type alias pub, uniffi bitvec
original c# example equivalent works

add uniffi bitvec

original c# example now works with a few tweaks via uniffi
2024-11-13 19:59:55 +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 },
}