Enum igd::RequestError [] [src]

pub enum RequestError {
    HttpError(Error),
    IoError(Error),
    InvalidResponse(String),
    ErrorCode(u16String),
}

Errors that can occur when sending the request to the gateway.

Variants

HttpError(Error)

Http/Hyper error

IoError(Error)

IO Error

InvalidResponse(String)

The response from the gateway could not be parsed.

ErrorCode(u16String)

The gateway returned an unhandled error code and description.

Trait Implementations

impl Debug for RequestError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for RequestError
[src]

fn from(err: Error) -> RequestError

Performs the conversion.

impl From<Error> for RequestError
[src]

fn from(err: Error) -> RequestError

Performs the conversion.

impl Display for RequestError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for RequestError
[src]

fn cause(&self) -> Option<&Error>

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

fn description(&self) -> &str

A short description of the error. Read more