pub struct HttpStatusCode(/* private fields */);Expand description
HTTP status-code primitive.
Implementations§
Source§impl HttpStatusCode
impl HttpStatusCode
Sourcepub const BAD_REQUEST: Self
pub const BAD_REQUEST: Self
The bad request constant.
Sourcepub const UNAUTHORIZED: Self
pub const UNAUTHORIZED: Self
The unauthorized constant.
Sourcepub const REQUEST_TIMEOUT: Self
pub const REQUEST_TIMEOUT: Self
The request timeout constant.
Sourcepub const PAYLOAD_TOO_LARGE: Self
pub const PAYLOAD_TOO_LARGE: Self
The payload too large constant.
Sourcepub const TOO_MANY_REQUESTS: Self
pub const TOO_MANY_REQUESTS: Self
The too many requests constant.
Sourcepub const INTERNAL_SERVER_ERROR: Self
pub const INTERNAL_SERVER_ERROR: Self
The internal server error constant.
Sourcepub const SERVICE_UNAVAILABLE: Self
pub const SERVICE_UNAVAILABLE: Self
The service unavailable constant.
Sourcepub const NOT_IMPLEMENTED: Self
pub const NOT_IMPLEMENTED: Self
The not implemented constant.
Sourcepub const GATEWAY_TIMEOUT: Self
pub const GATEWAY_TIMEOUT: Self
The gateway timeout constant.
Sourcepub const INSUFFICIENT_STORAGE: Self
pub const INSUFFICIENT_STORAGE: Self
The insufficient storage constant.
Trait Implementations§
Source§impl Clone for HttpStatusCode
impl Clone for HttpStatusCode
impl Copy for HttpStatusCode
Source§impl Debug for HttpStatusCode
impl Debug for HttpStatusCode
impl Eq for HttpStatusCode
Source§impl Hash for HttpStatusCode
impl Hash for HttpStatusCode
Source§impl Ord for HttpStatusCode
impl Ord for HttpStatusCode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HttpStatusCode
impl PartialEq for HttpStatusCode
Source§impl PartialOrd for HttpStatusCode
impl PartialOrd 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 UnsafeUnpin 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