pub enum HostError {
Ncp(String),
NetworkMismatch {
found: String,
},
RestoreRefused(String),
RestartRequired,
UnknownDevice(Ieee),
Timeout(NodeId),
DeliveryFailed(NodeId),
Status {
what: String,
status: u8,
},
BadFrame(String),
Invalid(String),
Io(String),
Stopped,
}Expand description
A host operation failed.
Variants§
Ncp(String)
The NCP failed or rejected a command.
NetworkMismatch
The NCP runs a different network than configured. Nothing was changed; restore a backup or allow replacing it.
RestoreRefused(String)
A restore needs the coordinator’s IEEE address and this chip cannot take it.
RestartRequired
The coordinator’s IEEE address was written; the NCP must be power cycled (or the host restarted) before the restore can finish.
UnknownDevice(Ieee)
No such device.
Timeout(NodeId)
The device did not answer in time.
DeliveryFailed(NodeId)
The NCP could not deliver the frame.
Status
The device answered with a failure status.
BadFrame(String)
A frame did not decode.
Invalid(String)
A request was not valid.
Io(String)
Store or backup file I/O.
Stopped
The host has stopped.
Trait Implementations§
Source§impl Error for HostError
impl Error for HostError
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()
Source§impl From<DeconzError> for HostError
impl From<DeconzError> for HostError
Source§fn from(e: DeconzError) -> Self
fn from(e: DeconzError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HostError
impl RefUnwindSafe for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin for HostError
impl UnsafeUnpin for HostError
impl UnwindSafe for HostError
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