Enum philipshue::errors::HueErrorKind
[−]
pub enum HueErrorKind { Msg(String), JsonError(Error), HyperError(Error), BridgeError { address: String, description: String, error: BridgeError, }, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
JsonError(Error)
Json error
HyperError(Error)
Hyper error
BridgeError
An error that occured in the bridge
Fields of BridgeError
address: String | |
description: String | |
error: BridgeError |
Methods
impl HueErrorKind
fn description(&self) -> &str
A string describing the error kind.