pub enum FetchCachedErrorKind {
TooManyRedirects(TooManyRedirectsError),
NotFound(Url),
ChecksumIntegrity(ChecksumIntegrityError),
CacheRead(CacheReadError),
RedirectResolution(RedirectResolutionError),
}Variants§
TooManyRedirects(TooManyRedirectsError)
NotFound(Url)
ChecksumIntegrity(ChecksumIntegrityError)
CacheRead(CacheReadError)
RedirectResolution(RedirectResolutionError)
Implementations§
Source§impl FetchCachedErrorKind
impl FetchCachedErrorKind
pub fn into_box(self) -> FetchCachedError
Trait Implementations§
Source§impl Debug for FetchCachedErrorKind
impl Debug for FetchCachedErrorKind
Source§impl Display for FetchCachedErrorKind
impl Display for FetchCachedErrorKind
Source§impl Error for FetchCachedErrorKind
impl Error for FetchCachedErrorKind
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<CacheReadError> for FetchCachedErrorKind
impl From<CacheReadError> for FetchCachedErrorKind
Source§fn from(source: CacheReadError) -> Self
fn from(source: CacheReadError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumIntegrityError> for FetchCachedErrorKind
impl From<ChecksumIntegrityError> for FetchCachedErrorKind
Source§fn from(source: ChecksumIntegrityError) -> Self
fn from(source: ChecksumIntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<RedirectResolutionError> for FetchCachedErrorKind
impl From<RedirectResolutionError> for FetchCachedErrorKind
Source§fn from(source: RedirectResolutionError) -> Self
fn from(source: RedirectResolutionError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for FetchCachedErrorKind
impl JsErrorClass for FetchCachedErrorKind
Source§fn get_message(&self) -> Cow<'static, str>
fn get_message(&self) -> Cow<'static, str>
Represents the error message used in JavaScript side.
Source§fn get_additional_properties(&self) -> AdditionalProperties
fn get_additional_properties(&self) -> AdditionalProperties
Additional properties that should be defined on the error in JavaScript side.
fn get_ref(&self) -> &(dyn Error + Send + Sync + 'static)
Auto Trait Implementations§
impl !RefUnwindSafe for FetchCachedErrorKind
impl !UnwindSafe for FetchCachedErrorKind
impl Freeze for FetchCachedErrorKind
impl Send for FetchCachedErrorKind
impl Sync for FetchCachedErrorKind
impl Unpin for FetchCachedErrorKind
impl UnsafeUnpin for FetchCachedErrorKind
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<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSend for Twhere
T: ?Sized,
impl<T> MaybeSendSync for T
impl<T> MaybeSync for Twhere
T: ?Sized,
Source§impl<T> PathsInErrorsExt for Twhere
T: ?Sized,
impl<T> PathsInErrorsExt for Twhere
T: ?Sized,
Source§fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>
fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>
Wraps
self in a SysWithPathsInErrors that includes paths in error messages.