Struct philipshue::errors::HueError []

pub struct HueError(_, _);

The Error type.

This struct is made of three things:

  • an ErrorKind which is used to determine the type of the error.
  • a backtrace, generated when the error is created.
  • an error chain, used for the implementation of Error::cause().

Methods

impl HueError

Constructs an error from a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

Methods from Deref<Target=HueErrorKind>

A string describing the error kind.

Trait Implementations

impl From<Error> for HueError
[src]

Performs the conversion.

impl Debug for HueError

Formats the value using the given formatter.

impl ChainedError for HueError

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

impl Error for HueError

A short description of the error. Read more

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

impl Display for HueError

Formats the value using the given formatter.

impl From<Error> for HueError

Json error

Performs the conversion.

impl From<Error> for HueError

Hyper error

Performs the conversion.

impl From<HueErrorKind> for HueError

Performs the conversion.

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

Performs the conversion.

impl From<String> for HueError

Performs the conversion.

impl Deref for HueError

The resulting type after dereferencing

The method called to dereference a value