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

GetUsername

Error that can occur when the username cannot be obtained after registering a user.

GetCreatedId

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

0: ChronoParseError
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

0: AddrParseError
ParseJson(SerdeJsonError)

Error that can occur while parsing json content.

Tuple Fields of ParseJson

0: SerdeJsonError
Request(Box<UreqError>)

Error that can occur when sending HTTP requests.

Tuple Fields of Request

0: Box<UreqError>
ParseDescription(SerdeXmlError)
This is supported on crate feature upnp-description only.

Error that can occur when deserializing Description.

Tuple Fields of ParseDescription

0: SerdeXmlError
Response(ResponseError)

Error that is returned by the Philips Hue API.

Tuple Fields of Response

0: ResponseError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.