pub struct Error {
pub inner: Box<ErrorInner>,
}Fields§
§inner: Box<ErrorInner>Implementations§
Source§impl Error
impl Error
pub fn new<E>(kind: ErrorKind, source: Option<E>) -> Error
pub fn kind(&self) -> &ErrorKind
pub fn is_request(&self) -> bool
pub fn is_response(&self) -> bool
pub fn is_command(&self) -> bool
pub fn is_service(&self) -> bool
pub fn is_proxy(&self) -> bool
pub fn is_download(&self) -> bool
pub fn is_queue(&self) -> bool
pub fn is_timeout(&self) -> bool
pub fn is_connect(&self) -> bool
Source§impl Error
impl Error
pub fn request_timeout() -> Self
pub fn request_not_found() -> Self
pub fn proxy_not_found() -> Self
pub fn proxy_expired() -> Self
pub fn download_failed<E: Into<BoxError>>(source: E) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<CacheError> for Error
impl From<CacheError> for Error
Source§fn from(err: CacheError) -> Self
fn from(err: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<CommandError> for Error
impl From<CommandError> for Error
Source§fn from(err: CommandError) -> Self
fn from(err: CommandError) -> Self
Converts to this type from the input type.
Source§impl From<CookieError> for Error
impl From<CookieError> for Error
Source§fn from(err: CookieError) -> Self
fn from(err: CookieError) -> Self
Converts to this type from the input type.
Source§impl From<DataMiddlewareError> for Error
impl From<DataMiddlewareError> for Error
Source§fn from(value: DataMiddlewareError) -> Self
fn from(value: DataMiddlewareError) -> Self
Converts to this type from the input type.
Source§impl From<DataStoreError> for Error
impl From<DataStoreError> for Error
Source§fn from(value: DataStoreError) -> Self
fn from(value: DataStoreError) -> Self
Converts to this type from the input type.
Source§impl From<DownloadError> for Error
impl From<DownloadError> for Error
Source§fn from(err: DownloadError) -> Self
fn from(err: DownloadError) -> Self
Converts to this type from the input type.
Source§impl From<DynLibError> for Error
impl From<DynLibError> for Error
Source§fn from(value: DynLibError) -> Self
fn from(value: DynLibError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for Error
impl From<HeaderError> for Error
Source§fn from(err: HeaderError) -> Self
fn from(err: HeaderError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleError> for Error
impl From<ModuleError> for Error
Source§fn from(err: ModuleError) -> Self
fn from(err: ModuleError) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for Error
impl From<ParseBoolError> for Error
Source§fn from(value: ParseBoolError) -> Self
fn from(value: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for Error
impl From<ParserError> for Error
Source§fn from(value: ParserError) -> Self
fn from(value: ParserError) -> Self
Converts to this type from the input type.
Source§impl From<ProcessorChainError> for Error
impl From<ProcessorChainError> for Error
Source§fn from(err: ProcessorChainError) -> Self
fn from(err: ProcessorChainError) -> Self
Converts to this type from the input type.
Source§impl From<ProxyError> for Error
impl From<ProxyError> for Error
Source§fn from(err: ProxyError) -> Self
fn from(err: ProxyError) -> Self
Converts to this type from the input type.
Source§impl From<QueueError> for Error
impl From<QueueError> for Error
Source§fn from(err: QueueError) -> Self
fn from(err: QueueError) -> Self
Converts to this type from the input type.
Source§impl From<RateLimitError> for Error
impl From<RateLimitError> for Error
Source§fn from(err: RateLimitError) -> Self
fn from(err: RateLimitError) -> Self
Converts to this type from the input type.
Source§impl From<RequestError> for Error
impl From<RequestError> for Error
Source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
Converts to this type from the input type.
Source§impl From<ResponseError> for Error
impl From<ResponseError> for Error
Source§fn from(err: ResponseError) -> Self
fn from(err: ResponseError) -> Self
Converts to this type from the input type.
Source§impl From<ServiceError> for Error
impl From<ServiceError> for Error
Source§fn from(err: ServiceError) -> Self
fn from(err: ServiceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more