pub enum ErrorKind {
InvalidInput,
UnsafeDestination,
Timeout,
Transport,
HttpStatus,
UnsupportedContent,
EmptyContent,
}Expand description
Stable web-fetch failure classification.
Variants§
InvalidInput
The URL or limits were invalid.
UnsafeDestination
The URL did not resolve exclusively to public web addresses.
Timeout
The request exceeded its configured timeout.
Transport
The destination could not be reached or returned malformed transport data.
HttpStatus
The destination returned a non-success HTTP status.
UnsupportedContent
The destination returned a non-text content type.
EmptyContent
The page contained no readable text.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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