Struct tiny_http::StatusCode [] [src]

pub struct StatusCode(pub u16);

Status code of a request or response.

Methods

impl StatusCode
[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]

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

This method tests for !=.

impl Clone for StatusCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StatusCode
[src]

Formats the value using the given formatter.

impl Ord for StatusCode
[src]

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

impl PartialOrd for StatusCode
[src]

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

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

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

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

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]

Performs the conversion.

impl From<u8> for StatusCode
[src]

Performs the conversion.

impl From<i16> for StatusCode
[src]

Performs the conversion.

impl From<u16> for StatusCode
[src]

Performs the conversion.

impl From<i32> for StatusCode
[src]

Performs the conversion.

impl From<u32> for StatusCode
[src]

Performs the conversion.

impl AsRef<u16> for StatusCode
[src]

Performs the conversion.

impl PartialEq<u16> for StatusCode
[src]

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

This method tests for !=.

impl PartialOrd<u16> for StatusCode
[src]

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

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

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

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

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