#[repr(transparent)]pub struct HttpStatusCode(pub i32);
Tuple Fields§
§0: i32
Implementations§
source§impl HttpStatusCode
impl HttpStatusCode
pub const STATUS_UNSUPPORTED: HttpStatusCode = _
pub const STATUS_100_CONTINUE: HttpStatusCode = _
pub const STATUS_101_SWITCHING_PROTOCOLS: HttpStatusCode = _
pub const STATUS_200_OK: HttpStatusCode = _
pub const STATUS_201_CREATED: HttpStatusCode = _
pub const STATUS_202_ACCEPTED: HttpStatusCode = _
pub const STATUS_203_NON_AUTHORITATIVE_INFORMATION: HttpStatusCode = _
pub const STATUS_204_NO_CONTENT: HttpStatusCode = _
pub const STATUS_205_RESET_CONTENT: HttpStatusCode = _
pub const STATUS_206_PARTIAL_CONTENT: HttpStatusCode = _
pub const STATUS_300_MULTIPLE_CHOICES: HttpStatusCode = _
pub const STATUS_301_MOVED_PERMANENTLY: HttpStatusCode = _
pub const STATUS_302_FOUND: HttpStatusCode = _
pub const STATUS_303_SEE_OTHER: HttpStatusCode = _
pub const STATUS_304_NOT_MODIFIED: HttpStatusCode = _
pub const STATUS_305_USE_PROXY: HttpStatusCode = _
pub const STATUS_307_TEMPORARY_REDIRECT: HttpStatusCode = _
pub const STATUS_400_BAD_REQUEST: HttpStatusCode = _
pub const STATUS_401_UNAUTHORIZED: HttpStatusCode = _
pub const STATUS_402_PAYMENT_REQUIRED: HttpStatusCode = _
pub const STATUS_403_FORBIDDEN: HttpStatusCode = _
pub const STATUS_404_NOT_FOUND: HttpStatusCode = _
pub const STATUS_405_METHOD_NOT_ALLOWED: HttpStatusCode = _
pub const STATUS_406_NOT_ACCEPTABLE: HttpStatusCode = _
pub const STATUS_407_PROXY_AUTHENTICATION_REQUIRED: HttpStatusCode = _
pub const STATUS_408_REQUEST_TIME_OUT: HttpStatusCode = _
pub const STATUS_409_CONFLICT: HttpStatusCode = _
pub const STATUS_410_GONE: HttpStatusCode = _
pub const STATUS_411_LENGTH_REQUIRED: HttpStatusCode = _
pub const STATUS_412_PRECONDITION_FAILED: HttpStatusCode = _
pub const STATUS_413_REQUEST_ENTITY_TOO_LARGE: HttpStatusCode = _
pub const STATUS_414_REQUEST_URI_TOO_LARGE: HttpStatusCode = _
pub const STATUS_415_UNSUPPORTED_MEDIA_TYPE: HttpStatusCode = _
pub const STATUS_416_REQUESTED_RANGE_NOT_SATISFIED: HttpStatusCode = _
pub const STATUS_417_EXPECTATION_FAILED: HttpStatusCode = _
pub const STATUS_500_INTERNAL_SERVER_ERROR: HttpStatusCode = _
pub const STATUS_501_NOT_IMPLEMENTED: HttpStatusCode = _
pub const STATUS_502_BAD_GATEWAY: HttpStatusCode = _
pub const STATUS_503_SERVICE_UNAVAILABLE: HttpStatusCode = _
pub const STATUS_504_GATEWAY_TIME_OUT: HttpStatusCode = _
pub const STATUS_505_VERSION_NOT_SUPPORTED: HttpStatusCode = _
pub const STATUS_308_PERMANENT_REDIRECT: HttpStatusCode = _
Trait Implementations§
source§impl Clone for HttpStatusCode
impl Clone for HttpStatusCode
source§fn clone(&self) -> HttpStatusCode
fn clone(&self) -> HttpStatusCode
Returns a copy 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 HttpStatusCode
impl Debug for HttpStatusCode
source§impl Hash for HttpStatusCode
impl Hash for HttpStatusCode
source§impl Ord for HttpStatusCode
impl Ord for HttpStatusCode
source§fn cmp(&self, other: &HttpStatusCode) -> Ordering
fn cmp(&self, other: &HttpStatusCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HttpStatusCode
impl PartialEq for HttpStatusCode
source§impl PartialOrd for HttpStatusCode
impl PartialOrd for HttpStatusCode
impl Copy for HttpStatusCode
impl Eq for HttpStatusCode
impl StructuralPartialEq for HttpStatusCode
Auto Trait Implementations§
impl Freeze for HttpStatusCode
impl RefUnwindSafe for HttpStatusCode
impl Send for HttpStatusCode
impl Sync for HttpStatusCode
impl Unpin for HttpStatusCode
impl UnwindSafe for HttpStatusCode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)