pub enum RequestorError {
RequestError(Error),
Timeout(u64),
StatusError(StatusCode, String),
ProxyError(String),
}Expand description
Error types that can occur during HTTP requests
Variants§
RequestError(Error)
Encapsulates an underlying reqwest library error.
This typically occurs for network-level issues such as DNS failures, connection problems, or TLS errors.
Timeout(u64)
Indicates that a request did not complete within the specified timeout period.
The associated value represents the number of seconds the system waited before timing out.
StatusError(StatusCode, String)
Indicates that the server responded with a non-success status code.
Includes both the status code and any error message from the response body.
ProxyError(String)
Represents errors specific to proxy connection failures.
This could include authentication failures, connection refused errors, or other proxy-specific connectivity issues.
Trait Implementations§
Source§impl Debug for RequestorError
impl Debug for RequestorError
Source§impl Display for RequestorError
impl Display for RequestorError
Source§impl Error for RequestorError
impl Error for RequestorError
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<Error> for RequestorError
impl From<Error> for RequestorError
Source§impl From<RequestorError> for JudgementError
impl From<RequestorError> for JudgementError
Source§fn from(source: RequestorError) -> Self
fn from(source: RequestorError) -> Self
Converts to this type from the input type.
Source§impl From<RequestorError> for ManagerError
impl From<RequestorError> for ManagerError
Source§fn from(source: RequestorError) -> Self
fn from(source: RequestorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RequestorError
impl !UnwindSafe for RequestorError
impl Freeze for RequestorError
impl Send for RequestorError
impl Sync for RequestorError
impl Unpin for RequestorError
impl UnsafeUnpin for RequestorError
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