Enum copra::protocol::http::HttpStatus
[−]
[src]
pub enum HttpStatus { Ok, Forbidden, }
Status code in http response
Variants
Ok
200 Ok
Forbidden
403 Forbidden
Methods
impl HttpStatus
[src]
fn to_code(&self) -> i32
[src]
Number representation.
fn to_status_line(&self) -> &'static str
[src]
Short string description.
Trait Implementations
impl Clone for HttpStatus
[src]
fn clone(&self) -> HttpStatus
[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 PartialEq for HttpStatus
[src]
fn eq(&self, __arg_0: &HttpStatus) -> bool
[src]
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[src]
This method tests for !=
.