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]
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