Struct tiny_http::StatusCode
[−]
[src]
pub struct StatusCode(pub u16);
Status code of a request or response.
Methods
impl StatusCode[src]
pub fn default_reason_phrase(&self) -> &'static str[src]
Returns the default reason phrase for this status code. For example the status code 404 corresponds to "Not Found".
Trait Implementations
impl Eq for StatusCode[src]
impl PartialEq for StatusCode[src]
fn eq(&self, __arg_0: &StatusCode) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StatusCode) -> bool[src]
This method tests for !=.
impl Clone for StatusCode[src]
fn clone(&self) -> StatusCode[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for StatusCode[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Ord for StatusCode[src]
fn cmp(&self, __arg_0: &StatusCode) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for StatusCode[src]
fn partial_cmp(&self, __arg_0: &StatusCode) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &StatusCode) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &StatusCode) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &StatusCode) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &StatusCode) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl From<i8> for StatusCode[src]
fn from(in_code: i8) -> StatusCode[src]
Performs the conversion.
impl From<u8> for StatusCode[src]
fn from(in_code: u8) -> StatusCode[src]
Performs the conversion.
impl From<i16> for StatusCode[src]
fn from(in_code: i16) -> StatusCode[src]
Performs the conversion.
impl From<u16> for StatusCode[src]
fn from(in_code: u16) -> StatusCode[src]
Performs the conversion.
impl From<i32> for StatusCode[src]
fn from(in_code: i32) -> StatusCode[src]
Performs the conversion.
impl From<u32> for StatusCode[src]
fn from(in_code: u32) -> StatusCode[src]
Performs the conversion.
impl AsRef<u16> for StatusCode[src]
impl PartialEq<u16> for StatusCode[src]
fn eq(&self, other: &u16) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl PartialEq<StatusCode> for u16[src]
fn eq(&self, other: &StatusCode) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl PartialOrd<u16> for StatusCode[src]
fn partial_cmp(&self, other: &u16) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialOrd<StatusCode> for u16[src]
fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more