#[repr(u16)]pub enum HttpStatus {
Show 24 variants
Continue = 100,
SwitchingProtocols = 101,
EarlyHints = 103,
Ok = 200,
Created = 201,
Accepted = 202,
NoContent = 204,
PartialContent = 206,
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
TemporaryRedirect = 307,
PermanentRedirect = 308,
BadRequest = 400,
Unauthorized = 401,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
}
Variants§
Continue = 100
SwitchingProtocols = 101
EarlyHints = 103
Ok = 200
Created = 201
Accepted = 202
NoContent = 204
PartialContent = 206
MovedPermanently = 301
Found = 302
SeeOther = 303
NotModified = 304
TemporaryRedirect = 307
PermanentRedirect = 308
BadRequest = 400
Forbidden = 403
NotFound = 404
MethodNotAllowed = 405
InternalServerError = 500
NotImplemented = 501
BadGateway = 502
GatewayTimeout = 504
Implementations§
Trait Implementations§
Source§impl Clone for HttpStatus
impl Clone for HttpStatus
Source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
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 HttpStatus
impl Debug for HttpStatus
Source§impl PartialEq for HttpStatus
impl PartialEq for HttpStatus
impl Copy for HttpStatus
impl Eq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnwindSafe for HttpStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.