Struct tiny_http::Method [] [src]

pub struct Method(_);

HTTP method (eg. GET, POST, etc.)

The user chooses the method he wants.

Comparaison between two Methods ignores case.

Methods

impl Method
[src]

fn equiv(&self, other: &'static str) -> bool

Trait Implementations

impl Clone for Method
[src]

fn clone(&self) -> Method

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 Debug for Method
[src]

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

Formats the value using the given formatter.

impl FromStr for Method
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Method()>

Parses a string s to return a value of this type. Read more

impl Display for Method
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl PartialEq for Method
[src]

fn eq(&self, other: &Method) -> 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 Eq for Method
[src]