Enum bulbb::error::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidBrightnessLevel {
given: u32,
max: u32,
},
Io(Error),
ParseBrightnessError(ParseIntError),
InvalidDeviceName {
device: String,
},
}
Expand description
The error type for this crate.
The various errors that can be reported by this crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Brightness was set to invalid value.
Io(Error)
An I/O error.
Tuple Fields of Io
0: Error
ParseBrightnessError(ParseIntError)
Error parsing /sys/class/<backlight>
or /sys/class/<leds>
brightness files.
Tuple Fields of ParseBrightnessError
Invalid device name.
Fields of InvalidDeviceName
device: String
Trait Implementations
Performs the conversion.