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