Enum huelib::Error [−][src]
pub enum Error {
GetUsername,
GetCreatedId,
ParseDate(ChronoParseError),
ParseHttpResponse(IoError),
ParseIpAddr(AddrParseError),
ParseJson(SerdeJsonError),
Request(Box<UreqError>),
ParseDescription(SerdeXmlError),
Response(ResponseError),
}
Expand description
Errors that can occur while interacting with the Philips Hue API.
Variants
Error that can occur when the username cannot be obtained after registering a user.
Error that can occur when the identifier of a newly created resource cannot be obtained.
ParseDate(ChronoParseError)
Error that can occur while converting a string to a date.
Tuple Fields of ParseDate
ParseHttpResponse(IoError)
Error that can occur while converting a http response into a string.
Tuple Fields of ParseHttpResponse
0: IoError
ParseIpAddr(AddrParseError)
Error that can occur while converting a string to an IP address.
Tuple Fields of ParseIpAddr
ParseJson(SerdeJsonError)
Error that can occur while parsing json content.
Tuple Fields of ParseJson
Error that can occur when sending HTTP requests.
ParseDescription(SerdeXmlError)
This is supported on crate feature
upnp-description
only.Error that can occur when deserializing Description
.
Tuple Fields of ParseDescription
Response(ResponseError)
Error that is returned by the Philips Hue API.
Tuple Fields of Response
Trait Implementations
Performs the conversion.
Performs the conversion.