#[repr(i32)]pub enum ErrorCode {
Show 17 variants
Unknown = 0,
ParseError = 1,
NetworkError = 2,
InputError = 3,
MissingConfig = 4,
Cancel = 5,
Unauthorized = 100,
InvalidParams = 101,
EmailNotFound = 1_000,
EmailNotVerified = 1_001,
EmailConfirmationFailed = 1_002,
PasswordNotSet = 1_003,
GitHubEmailNotConnected = 1_004,
EmailAlreadyExist = 1_005,
InvalidPassword = 1_006,
ProjectNotFound = 2_000,
UnsupportedRunner = 2_001,
}Variants§
Unknown = 0
ParseError = 1
NetworkError = 2
InputError = 3
MissingConfig = 4
Cancel = 5
InvalidParams = 101
EmailNotFound = 1_000
EmailNotVerified = 1_001
EmailConfirmationFailed = 1_002
PasswordNotSet = 1_003
GitHubEmailNotConnected = 1_004
EmailAlreadyExist = 1_005
InvalidPassword = 1_006
ProjectNotFound = 2_000
UnsupportedRunner = 2_001
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl IntoEnumIterator for ErrorCode
impl IntoEnumIterator for ErrorCode
type Iterator = ErrorCodeIter
fn iter() -> ErrorCodeIter ⓘ
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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