[][src]Enum igd::RequestError

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

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

Variants

HttpError(HttpError)

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.

HyperError(Error)

When using the async feature.

Trait Implementations

impl From<HttpError> for RequestError[src]

impl From<Error> for RequestError[src]

impl From<Error> for RequestError[src]

impl From<UriError> for RequestError[src]

impl From<FromUtf8Error> for RequestError[src]

impl From<RequestError> for AddAnyPortError[src]

impl Display for RequestError[src]

impl Debug for RequestError[src]

impl Error for RequestError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T