pub enum HttpErrorType {
Fatal,
Hidden,
User,
}Expand description
How should this error be handled
Returned from HttpError::error_type
Variants§
Fatal
Terminates the connection (examples: network I/O error)
Hidden
Status code (examples: 404 Not found, 403 Forbidden)
User
Error with detailed description (could not parse json, wrong file type, etc)
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
impl Copy 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 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