Enum whdp::HttpStatusGroup
source · pub enum HttpStatusGroup {
Informational,
Successful,
Redirection,
ClientError,
ServerError,
Unknown,
}Expand description
Enum for HTTP Status Codes Groups
Variants§
Informational
between 100 - 199
Successful
between 200 - 299
Redirection
between 300 - 399
ClientError
between 400 - 499
ServerError
between 500 - 599
Unknown
incase self-made HTTP Status is invalid
Trait Implementations§
source§impl Clone for HttpStatusGroup
impl Clone for HttpStatusGroup
source§fn clone(&self) -> HttpStatusGroup
fn clone(&self) -> HttpStatusGroup
Returns a copy 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 HttpStatusGroup
impl Debug for HttpStatusGroup
source§impl Display for HttpStatusGroup
impl Display for HttpStatusGroup
source§impl From<&HttpStatus> for HttpStatusGroup
impl From<&HttpStatus> for HttpStatusGroup
source§fn from(value: &HttpStatus) -> Self
fn from(value: &HttpStatus) -> Self
Converts to this type from the input type.
source§impl From<usize> for HttpStatusGroup
impl From<usize> for HttpStatusGroup
source§impl Hash for HttpStatusGroup
impl Hash for HttpStatusGroup
source§impl Ord for HttpStatusGroup
impl Ord for HttpStatusGroup
source§fn cmp(&self, other: &HttpStatusGroup) -> Ordering
fn cmp(&self, other: &HttpStatusGroup) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HttpStatusGroup
impl PartialEq for HttpStatusGroup
source§fn eq(&self, other: &HttpStatusGroup) -> bool
fn eq(&self, other: &HttpStatusGroup) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for HttpStatusGroup
impl PartialOrd for HttpStatusGroup
source§fn partial_cmp(&self, other: &HttpStatusGroup) -> Option<Ordering>
fn partial_cmp(&self, other: &HttpStatusGroup) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<isize> for HttpStatusGroup
impl TryFrom<isize> for HttpStatusGroup
impl Copy for HttpStatusGroup
impl Eq for HttpStatusGroup
impl StructuralEq for HttpStatusGroup
impl StructuralPartialEq for HttpStatusGroup
Auto Trait Implementations§
impl RefUnwindSafe for HttpStatusGroup
impl Send for HttpStatusGroup
impl Sync for HttpStatusGroup
impl Unpin for HttpStatusGroup
impl UnwindSafe for HttpStatusGroup
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