Enum fire_http_representation::header::StatusCode [−][src]
#[repr(u16)] #[non_exhaustive] pub enum StatusCode {}Show variants
Continue, SwitchingProtocols, Ok, Created, Accepted, NonAuthoritativeInformation, NoContent, ResetContent, PartialContent, MultipleChoices, MovedPermanently, Found, SeeOther, NotModified, UseProxy, TemporaryRedirect, BadRequest, Unauthorized, PaymentRequired, Forbidden, NotFound, MethodNotAllowed, NotAcceptable, ProxyAuthenticationRequired, RequestTimeout, Conflict, Gone, LengthRequired, PreconditionFailed, RequestEntityTooLarge, RequestURITooLarge, UnsupportedMediaType, RequestedRangeNotSatisfiable, ExpectationFailed, InternalServerError, NotImplemented, BadGateway, ServiceUnavailable, GatewayTimeout, HTTPVersionNotSupported,
Expand description
An enum of all possible http status codes.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Continue
Switching Protocols
OK
Created
Accepted
Non-Authoritative Information
No Content
Reset Content
Partial Content
Multiple Choices
Moved Permanently
Found
See Other
Not Modified
Use Proxy
Temporary Redirect
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Method Not Allowed
Not Acceptable
Proxy Authentication Required
Request Time-out
Conflict
Gone
Length Required
Precondition Failed
Request Entity Too Large
Request-URI Too Large
Unsupported Media Type
Requested range not satisfiable
Expectation Failed
Internal Server Error
Not Implemented
Bad Gateway
Service Unavailable
Gateway Time-out
HTTP Version not supported
Implementations
impl StatusCode
[src]
impl StatusCode
[src]Trait Implementations
impl Clone for StatusCode
[src]
impl Clone for StatusCode
[src]fn clone(&self) -> StatusCode
[src]
fn clone(&self) -> StatusCode
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StatusCode
[src]
impl Debug for StatusCode
[src]impl Display for StatusCode
[src]
impl Display for StatusCode
[src]impl From<StatusCode> for Response
[src]
impl From<StatusCode> for Response
[src]fn from(status_code: StatusCode) -> Self
[src]
fn from(status_code: StatusCode) -> Self
[src]Performs the conversion.
impl PartialEq<StatusCode> for StatusCode
[src]
impl PartialEq<StatusCode> for StatusCode
[src]impl TryFrom<u16> for StatusCode
[src]
impl TryFrom<u16> for StatusCode
[src]impl Copy for StatusCode
[src]
impl Eq for StatusCode
[src]
impl StructuralEq for StatusCode
[src]
impl StructuralPartialEq for StatusCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more