pub enum RCode {
Success = 200,
Error = -1,
NotFound = 404,
Unauthorized = 401,
Forbidden = 403,
BadRequest = 400,
ServerError = 500,
CustomError = 10_000,
}Variants§
Success = 200
Error = -1
NotFound = 404
Forbidden = 403
BadRequest = 400
ServerError = 500
CustomError = 10_000
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RCode
impl RefUnwindSafe for RCode
impl Send for RCode
impl Sync for RCode
impl Unpin for RCode
impl UnsafeUnpin for RCode
impl UnwindSafe for RCode
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