pub enum DeconzError {
Down(String),
NoReply,
Timeout(u8),
Status {
command: u8,
status: u8,
},
Decode(DecodeError),
Unsupported(u32),
}Expand description
Client errors.
Variants§
Down(String)
The port closed or failed.
NoReply
Nothing answered VERSION.
Timeout(u8)
No response in time.
Status
The command failed.
Decode(DecodeError)
A response did not parse.
Unsupported(u32)
The firmware is too old.
Trait Implementations§
Source§impl Clone for DeconzError
impl Clone for DeconzError
Source§impl Debug for DeconzError
impl Debug for DeconzError
Source§impl Display for DeconzError
impl Display for DeconzError
Source§impl Error for DeconzError
impl Error for DeconzError
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()
Source§impl From<DecodeError> for DeconzError
impl From<DecodeError> for DeconzError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for DeconzError
impl Freeze for DeconzError
impl Move for DeconzError
impl RefUnwindSafe for DeconzError
impl Send for DeconzError
impl Sync for DeconzError
impl Unpin for DeconzError
impl UnsafeUnpin for DeconzError
impl UnwindSafe for DeconzError
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