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

A convenient variant for String.

Json error

Hyper error

An error that occured in the bridge

Fields of BridgeError

Methods

impl HueErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for HueErrorKind

Formats the value using the given formatter.

impl Display for HueErrorKind

Formats the value using the given formatter.

impl<'a> From<&'a str> for HueErrorKind

Performs the conversion.

impl From<String> for HueErrorKind

Performs the conversion.

impl From<HueError> for HueErrorKind

Performs the conversion.