Created
September 27, 2021 16:25
-
-
Save mike820324/02c6e66d5c1e29cb2712b11fce497f99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use num_enum::IntoPrimitive; | |
#[allow(non_camel_case_types)] | |
#[derive(IntoPrimitive)] | |
#[repr(u32)] | |
pub enum ReservationError { | |
OK = 0, | |
// 0x400 | |
ERR_RESERVATION_CREATE_INVALID_TIME_FORMAT = 0x40000001, | |
ERR_RESERVATION_CREATE_TIME_TOO_OLD = 0x40000002, | |
ERR_RESERVATION_CREATE_DB_ERROR = 0x40000003, | |
// 0x404 | |
// 0x500 | |
ERR_RESERVATION_CREATE_UNKNOWN_ERROR_1 = 0x50000002, | |
ERR_RESERVATION_LIST_UNKNOWN_ERROR_1 = 0x50000003, | |
ERR_RESERVATION_LIST_UNKNOWN_ERROR_2 = 0x50000004, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment