pub enum HttpErrorType {
Unauthorized,
Forbidden,
NotFound,
BadRequest,
ServerError,
NetworkError,
Other,
}Expand description
HTTP 错误类型
Variants§
未授权 (401)
Forbidden
禁止访问 (403)
NotFound
未找到 (404)
BadRequest
请求错误 (400)
ServerError
服务器错误 (5xx)
NetworkError
网络错误
Other
其他错误
Trait Implementations§
Source§impl Clone for HttpErrorType
impl Clone for HttpErrorType
Source§fn clone(&self) -> HttpErrorType
fn clone(&self) -> HttpErrorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpErrorType
impl Debug for HttpErrorType
Source§impl PartialEq for HttpErrorType
impl PartialEq for HttpErrorType
impl Copy for HttpErrorType
impl Eq for HttpErrorType
impl StructuralPartialEq for HttpErrorType
Auto Trait Implementations§
impl Freeze for HttpErrorType
impl RefUnwindSafe for HttpErrorType
impl Send for HttpErrorType
impl Sync for HttpErrorType
impl Unpin for HttpErrorType
impl UnsafeUnpin for HttpErrorType
impl UnwindSafe for HttpErrorType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.