pub enum SetBrightnessError {
InvalidValue(u8),
SetError(SetError),
}
Expand description
The brightness of the dimmer could not be set.
Variants§
InvalidValue(u8)
The given value is not between 0 and 100
SetError(SetError)
The LCI gateway request failed.
Trait Implementations§
Source§impl Debug for SetBrightnessError
impl Debug for SetBrightnessError
Source§impl Display for SetBrightnessError
impl Display for SetBrightnessError
Source§impl Error for SetBrightnessError
impl Error for SetBrightnessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for SetBrightnessError
impl !RefUnwindSafe for SetBrightnessError
impl Send for SetBrightnessError
impl Sync for SetBrightnessError
impl Unpin for SetBrightnessError
impl !UnwindSafe for SetBrightnessError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more