pub enum HttpKind {
Unauthorized,
Forbidden,
NotFound,
RateLimited,
ClientError,
ServerError,
Timeout,
Network,
Unknown,
}Expand description
Classification of HTTP errors.
Variants§
401 Unauthorized
Forbidden
403 Forbidden
NotFound
404 Not Found
RateLimited
429 Too Many Requests
ClientError
Other 4xx errors
ServerError
5xx errors
Timeout
Request timeout
Network
Network/connection error
Unknown
Unknown or unclassified error
Trait Implementations§
impl Copy for HttpKind
impl Eq for HttpKind
impl StructuralPartialEq for HttpKind
Auto Trait Implementations§
impl Freeze for HttpKind
impl RefUnwindSafe for HttpKind
impl Send for HttpKind
impl Sync for HttpKind
impl Unpin for HttpKind
impl UnwindSafe for HttpKind
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