Enum igd::RequestError [] [src]

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

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

Variants

HttpError

Http/Hyper error

IoError

IO Error

InvalidResponse

The response from the gateway could not be parsed.

ErrorCode

The gateway returned an unhandled error code and description.

Trait Implementations

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.

fn description(&self) -> &str

A short description of the error. Read more

Derived Implementations

impl Debug for RequestError
[src]

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

Formats the value using the given formatter.