pub enum StatusCode {
Show 18 variants
Undefined = 900,
FetchFailed = 901,
FetchTimeout = 902,
DecodeFailed = 903,
Ok = 200,
Created = 201,
NoContent = 204,
NotModified = 304,
BadRequest = 400,
Unauthorized = 401,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
PayloadTooBig = 413,
UnsupportedMediaType = 415,
RateLimited = 429,
InternalServerError = 500,
NotImplemented = 501,
}Variants§
Undefined = 900
FetchFailed = 901
FetchTimeout = 902
DecodeFailed = 903
Ok = 200
Created = 201
NoContent = 204
NotModified = 304
BadRequest = 400
Forbidden = 403
NotFound = 404
MethodNotAllowed = 405
PayloadTooBig = 413
UnsupportedMediaType = 415
RateLimited = 429
InternalServerError = 500
NotImplemented = 501
Implementations§
Source§impl StatusCode
impl StatusCode
pub fn is_success(&self) -> bool
pub fn is_failure(&self) -> bool
pub fn is_local(&self) -> bool
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
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 StatusCode
impl Debug for StatusCode
Source§impl From<bool> for StatusCode
impl From<bool> for StatusCode
Source§impl From<u16> for StatusCode
impl From<u16> 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