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
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
503, Service Unavailable
Implementations§
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
impl Copy for StatusCode
impl Eq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more