pub enum RequestError {
AttoHttpError(Error),
IoError(Error),
InvalidResponse(String),
ErrorCode(u16, String),
UnsupportedAction(String),
HyperError(Error),
HyperClientError(Error),
SurfError(Error),
HttpError(Error),
Utf8Error(FromUtf8Error),
}
Expand description
Errors that can occur when sending the request to the gateway.
Variants§
AttoHttpError(Error)
attohttp 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.
UnsupportedAction(String)
Action is not supported by the gateway
HyperError(Error)
When using the aio feature.
HyperClientError(Error)
When using the aio feature.
SurfError(Error)
When using aio async std feature
HttpError(Error)
http crate error type
Utf8Error(FromUtf8Error)
Error parsing HTTP body
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Elapsed> for RequestError
impl From<Elapsed> for RequestError
source§fn from(_err: Elapsed) -> RequestError
fn from(_err: Elapsed) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§fn from(err: Error) -> RequestError
fn from(err: Error) -> RequestError
Converts to this type from the input type.
source§impl From<Error> for RequestError
impl From<Error> for RequestError
source§impl From<FromUtf8Error> for RequestError
impl From<FromUtf8Error> for RequestError
source§fn from(err: FromUtf8Error) -> RequestError
fn from(err: FromUtf8Error) -> RequestError
Converts to this type from the input type.
source§impl From<RequestError> for AddAnyPortError
impl From<RequestError> for AddAnyPortError
source§fn from(err: RequestError) -> AddAnyPortError
fn from(err: RequestError) -> AddAnyPortError
Converts to this type from the input type.
source§impl From<RequestError> for Error
impl From<RequestError> for Error
source§fn from(err: RequestError) -> Error
fn from(err: RequestError) -> Error
Converts to this type from the input type.
source§impl From<RequestError> for GetGenericPortMappingEntryError
impl From<RequestError> for GetGenericPortMappingEntryError
source§fn from(err: RequestError) -> GetGenericPortMappingEntryError
fn from(err: RequestError) -> GetGenericPortMappingEntryError
Converts to this type from the input type.
source§impl From<TimeoutError> for RequestError
impl From<TimeoutError> for RequestError
source§fn from(_err: TimeoutError) -> RequestError
fn from(_err: TimeoutError) -> RequestError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestError
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more