Struct tiny_http::Method
[−]
[src]
pub struct Method(_);
HTTP method (eg. GET
, POST
, etc.)
The user chooses the method he wants.
Comparaison between two Method
s ignores case.
Methods
impl Method
[src]
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]
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 !=
.