pub enum HttpCode {
Ok,
BadRequest,
Unauthorized,
Forbidden,
NotFound,
NotAcceptable,
Unknown(i32),
}Variants§
Implementations§
Source§impl HttpCode
impl HttpCode
pub fn from_http_code(http_code: i32) -> Self
pub fn retcode_to_http_code(retcode: i32) -> i32
pub fn from_retcode(retcode: i32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpCode
impl RefUnwindSafe for HttpCode
impl Send for HttpCode
impl Sync for HttpCode
impl Unpin for HttpCode
impl UnsafeUnpin for HttpCode
impl UnwindSafe for HttpCode
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