Enum dbs_uhttp::StatusCode
source · [−]pub enum StatusCode {
Continue,
OK,
NoContent,
BadRequest,
Unauthorized,
NotFound,
MethodNotAllowed,
PayloadTooLarge,
InternalServerError,
NotImplemented,
ServiceUnavailable,
}Expand description
Wrapper over a response status code.
The status code is defined as specified in the RFC.
Variants
Continue
100, Continue
OK
200, OK
NoContent
204, No Content
BadRequest
400, Bad Request
Unauthorized
401, Unauthorized
NotFound
404, Not Found
MethodNotAllowed
405, Method Not Allowed
PayloadTooLarge
413, Payload Too Large
InternalServerError
500, Internal Server Error
NotImplemented
501, Not Implemented
ServiceUnavailable
503, Service Unavailable
Implementations
Trait Implementations
sourceimpl Clone for StatusCode
impl Clone for StatusCode
sourcefn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StatusCode
impl Debug for StatusCode
sourceimpl PartialEq<StatusCode> for StatusCode
impl PartialEq<StatusCode> for StatusCode
impl Copy for StatusCode
impl StructuralPartialEq for StatusCode
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more