Struct tiny_http::StatusCode [] [src]

pub struct StatusCode(pub u16);

Status code of a request or response.

Methods

impl StatusCode
[src]

fn default_reason_phrase(&self) -> &'static str

Returns the default reason phrase for this status code. For example the status code 404 corresponds to "Not Found".

Trait Implementations

impl PartialOrd for StatusCode
[src]

fn partial_cmp(&self, __arg_0: &StatusCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &StatusCode) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &StatusCode) -> bool

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

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &StatusCode) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for StatusCode
[src]

fn cmp(&self, __arg_0: &StatusCode) -> Ordering

This method returns an Ordering between self and other. Read more

impl Debug for StatusCode
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for StatusCode
[src]

fn clone(&self) -> StatusCode

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for StatusCode
[src]

fn eq(&self, __arg_0: &StatusCode) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &StatusCode) -> bool

This method tests for !=.

impl Eq for StatusCode
[src]

impl From<i8> for StatusCode
[src]

fn from(in_code: i8) -> StatusCode

Performs the conversion.

impl From<u8> for StatusCode
[src]

fn from(in_code: u8) -> StatusCode

Performs the conversion.

impl From<i16> for StatusCode
[src]

fn from(in_code: i16) -> StatusCode

Performs the conversion.

impl From<u16> for StatusCode
[src]

fn from(in_code: u16) -> StatusCode

Performs the conversion.

impl From<i32> for StatusCode
[src]

fn from(in_code: i32) -> StatusCode

Performs the conversion.

impl From<u32> for StatusCode
[src]

fn from(in_code: u32) -> StatusCode

Performs the conversion.

impl AsRef<u16> for StatusCode
[src]

fn as_ref(&self) -> &u16

Performs the conversion.

impl PartialEq<u16> for StatusCode
[src]

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl PartialOrd<u16> for StatusCode
[src]

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, other: &Rhs) -> bool
1.0.0

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, other: &Rhs) -> bool
1.0.0

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) -> bool
1.0.0

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, other: &Rhs) -> bool
1.0.0

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more