Enum relay_cabi::RelayErrorCode
source · #[repr(u32)]pub enum RelayErrorCode {
Show 15 variants
NoError = 0,
Panic = 1,
Unknown = 2,
InvalidJsonError = 101,
KeyParseErrorBadEncoding = 1_000,
KeyParseErrorBadKey = 1_001,
UnpackErrorBadSignature = 1_003,
UnpackErrorBadPayload = 1_004,
UnpackErrorSignatureExpired = 1_005,
UnpackErrorBadEncoding = 1_006,
ProcessingErrorInvalidTransaction = 2_001,
ProcessingErrorInvalidGeoIp = 2_002,
InvalidReleaseErrorTooLong = 3_001,
InvalidReleaseErrorRestrictedName = 3_002,
InvalidReleaseErrorBadCharacters = 3_003,
}
Expand description
Represents all possible error codes.
Variants§
NoError = 0
Panic = 1
Unknown = 2
InvalidJsonError = 101
KeyParseErrorBadEncoding = 1_000
KeyParseErrorBadKey = 1_001
UnpackErrorBadSignature = 1_003
UnpackErrorBadPayload = 1_004
UnpackErrorSignatureExpired = 1_005
UnpackErrorBadEncoding = 1_006
ProcessingErrorInvalidTransaction = 2_001
ProcessingErrorInvalidGeoIp = 2_002
InvalidReleaseErrorTooLong = 3_001
InvalidReleaseErrorRestrictedName = 3_002
InvalidReleaseErrorBadCharacters = 3_003
Implementations§
source§impl RelayErrorCode
impl RelayErrorCode
sourcepub fn from_error(error: &Error) -> RelayErrorCode
pub fn from_error(error: &Error) -> RelayErrorCode
This maps all errors that can possibly happen.
Auto Trait Implementations§
impl Freeze for RelayErrorCode
impl RefUnwindSafe for RelayErrorCode
impl Send for RelayErrorCode
impl Sync for RelayErrorCode
impl Unpin for RelayErrorCode
impl UnwindSafe for RelayErrorCode
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