Enum igd::RequestError
source · [−]pub enum RequestError {
HttpError(Error),
IoError(Error),
InvalidResponse(String),
ErrorCode(u16, String),
}
Expand description
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(u16, String)
The gateway returned an unhandled error code and description.
Trait Implementations
sourceimpl Debug for RequestError
impl Debug for RequestError
sourceimpl Display for RequestError
impl Display for RequestError
sourceimpl Error for RequestError
impl Error for RequestError
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for RequestError
impl From<Error> for RequestError
sourcefn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Performs the conversion.
sourceimpl From<RequestError> for AddAnyPortError
impl From<RequestError> for AddAnyPortError
sourcefn from(err: RequestError) -> AddAnyPortError
fn from(err: RequestError) -> AddAnyPortError
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more