pub enum SwitchError {
InvalidDeviceType(Option<DeviceType>),
}
Expand description
Returned when a Switch can not be made from the given “thing”.
Variants§
InvalidDeviceType(Option<DeviceType>)
Returned when the “thing” is not a Switch.
Trait Implementations§
Source§impl Debug for SwitchError
impl Debug for SwitchError
Source§impl Display for SwitchError
impl Display for SwitchError
Source§impl Error for SwitchError
impl Error for SwitchError
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 SwitchError
impl RefUnwindSafe for SwitchError
impl Send for SwitchError
impl Sync for SwitchError
impl Unpin for SwitchError
impl UnwindSafe for SwitchError
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