#[repr(u32)]pub enum ErrorCode {
Show 119 variants
NotSet = 0,
UnknownError = 1,
NoError = 10_000,
BadRequest = 40_000,
InvalidRequestBody = 40_001,
InvalidParameterName = 40_002,
InvalidParameterValue = 40_003,
InvalidHeader = 40_004,
InvalidCredential = 40_005,
InvalidConnectionID = 40_006,
InvalidMessageID = 40_007,
InvalidContentLength = 40_008,
MaximumMessageLengthExceeded = 40_009,
InvalidChannelName = 40_010,
StaleRingState = 40_011,
InvalidClientID = 40_012,
InvalidMessageDataOrEncoding = 40_013,
ResourceDisposed = 40_014,
InvalidDeviceID = 40_015,
BatchError = 40_020,
InvalidPublishRequestUnspecified = 40_030,
InvalidPublishRequestInvalidClientSpecifiedID = 40_031,
Testing = 40_099,
Unauthorized = 40_100,
InvalidCredentials = 40_101,
IncompatibleCredentials = 40_102,
InvalidUseOfBasicAuthOverNonTLSTransport = 40_103,
TimestampNotCurrent = 40_104,
NonceValueReplayed = 40_105,
UnableToObtainCredentialsFromGivenParameters = 40_106,
AccountDisabled = 40_110,
AccountRestrictedConnectionLimitsExceeded = 40_111,
AccountBlockedMessageLimitsExceeded = 40_112,
AccountBlocked = 40_113,
AccountRestrictedChannelLimitsExceeded = 40_114,
ApplicationDisabled = 40_120,
KeyErrorUnspecified = 40_130,
KeyRevoked = 40_131,
KeyExpired = 40_132,
KeyDisabled = 40_133,
TokenErrorUnspecified = 40_140,
TokenRevoked = 40_141,
TokenExpired = 40_142,
TokenUnrecognised = 40_143,
InvalidJWTFormat = 40_144,
InvalidTokenFormat = 40_145,
ConnectionBlockedLimitsExceeded = 40_150,
OperationNotPermittedWithProvidedCapability = 40_160,
ErrorFromClientTokenCallback = 40_170,
NoWayToRenewAuthToken = 40_171,
Forbidden = 40_300,
AccountDoesNotPermitTLSConnection = 40_310,
OperationRequiresTLSConnection = 40_311,
ApplicationRequiresAuthentication = 40_320,
NotFound = 40_400,
MethodNotAllowed = 40_500,
RateLimitExceededNonfatal = 42_910,
MaxPerConnectionPublishRateLimitExceededNonfatal = 42_911,
RateLimitExceededFatal = 42_920,
MaxPerConnectionPublishRateLimitExceededFatal = 42_921,
InternalError = 50_000,
InternalChannelError = 50_001,
InternalConnectionError = 50_002,
TimeoutError = 50_003,
RequestFailedDueToOverloadedInstance = 50_004,
ReactorOperationFailed = 70_000,
ReactorOperationFailedPostOperationFailed = 70_001,
ReactorOperationFailedPostOperationReturnedUnexpectedCode = 70_002,
ReactorOperationFailedMaximumNumberOfConcurrentInFlightRequestsExceeded = 70_003,
ExchangeErrorUnspecified = 71_000,
ForcedReAttachmentDueToPermissionsChange = 71_001,
ExchangePublisherErrorUnspecified = 71_100,
NoSuchPublisher = 71_101,
PublisherNotEnabledAsAnExchangePublisher = 71_102,
ExchangeProductErrorUnspecified = 71_200,
NoSuchProduct = 71_201,
ProductDisabled = 71_202,
NoSuchChannelInThisProduct = 71_203,
ExchangeSubscriptionErrorUnspecified = 71_300,
SubscriptionDisabled = 71_301,
RequesterHasNoSubscriptionToThisProduct = 71_302,
ConnectionFailed = 80_000,
ConnectionFailedNoCompatibleTransport = 80_001,
ConnectionSuspended = 80_002,
Disconnected = 80_003,
AlreadyConnected = 80_004,
InvalidConnectionIDRemoteNotFound = 80_005,
UnableToRecoverConnectionMessagesExpired = 80_006,
UnableToRecoverConnectionMessageLimitExceeded = 80_007,
UnableToRecoverConnectionConnectionExpired = 80_008,
ConnectionNotEstablishedNoTransportHandle = 80_009,
InvalidOperationInvalidTransportHandle = 80_010,
UnableToRecoverConnectionIncompatibleAuthParams = 80_011,
UnableToRecoverConnectionInvalidOrUnspecifiedConnectionSerial = 80_012,
ProtocolError = 80_013,
ConnectionTimedOut = 80_014,
IncompatibleConnectionParameters = 80_015,
OperationOnSupersededTransport = 80_016,
ConnectionClosed = 80_017,
InvalidConnectionIDInvalidFormat = 80_018,
ClientConfiguredAuthenticationProviderRequestFailed = 80_019,
ContinuityLossDueToMaximumSubscribeMessageRateExceeded = 80_020,
ClientRestrictionNotSatisfied = 80_030,
ChannelOperationFailed = 90_000,
ChannelOperationFailedInvalidChannelState = 90_001,
ChannelOperationFailedEpochExpiredOrNeverExisted = 90_002,
UnableToRecoverChannelMessagesExpired = 90_003,
UnableToRecoverChannelMessageLimitExceeded = 90_004,
UnableToRecoverChannelNoMatchingEpoch = 90_005,
UnableToRecoverChannelUnboundedRequest = 90_006,
ChannelOperationFailedNoResponseFromServer = 90_007,
MaximumNumberOfChannelsPerConnectionExceeded = 90_010,
UnableToEnterPresenceChannelNoClientID = 91_000,
UnableToEnterPresenceChannelInvalidChannelState = 91_001,
UnableToLeavePresenceChannelThatIsNotEntered = 91_002,
UnableToEnterPresenceChannelMaximumMemberLimitExceeded = 91_003,
UnableToAutomaticallyReEnterPresenceChannel = 91_004,
PresenceStateIsOutOfSync = 91_005,
MemberImplicitlyLeftPresenceChannelConnectionClosed = 91_100,
}Variants§
NotSet = 0
UnknownError = 1
NoError = 10_000
BadRequest = 40_000
InvalidRequestBody = 40_001
InvalidParameterName = 40_002
InvalidParameterValue = 40_003
InvalidHeader = 40_004
InvalidCredential = 40_005
InvalidConnectionID = 40_006
InvalidMessageID = 40_007
InvalidContentLength = 40_008
MaximumMessageLengthExceeded = 40_009
InvalidChannelName = 40_010
StaleRingState = 40_011
InvalidClientID = 40_012
InvalidMessageDataOrEncoding = 40_013
ResourceDisposed = 40_014
InvalidDeviceID = 40_015
BatchError = 40_020
InvalidPublishRequestUnspecified = 40_030
InvalidPublishRequestInvalidClientSpecifiedID = 40_031
Testing = 40_099
InvalidCredentials = 40_101
IncompatibleCredentials = 40_102
InvalidUseOfBasicAuthOverNonTLSTransport = 40_103
TimestampNotCurrent = 40_104
NonceValueReplayed = 40_105
UnableToObtainCredentialsFromGivenParameters = 40_106
AccountDisabled = 40_110
AccountRestrictedConnectionLimitsExceeded = 40_111
AccountBlockedMessageLimitsExceeded = 40_112
AccountBlocked = 40_113
AccountRestrictedChannelLimitsExceeded = 40_114
ApplicationDisabled = 40_120
KeyErrorUnspecified = 40_130
KeyRevoked = 40_131
KeyExpired = 40_132
KeyDisabled = 40_133
TokenErrorUnspecified = 40_140
TokenRevoked = 40_141
TokenExpired = 40_142
TokenUnrecognised = 40_143
InvalidJWTFormat = 40_144
InvalidTokenFormat = 40_145
ConnectionBlockedLimitsExceeded = 40_150
OperationNotPermittedWithProvidedCapability = 40_160
ErrorFromClientTokenCallback = 40_170
NoWayToRenewAuthToken = 40_171
Forbidden = 40_300
AccountDoesNotPermitTLSConnection = 40_310
OperationRequiresTLSConnection = 40_311
ApplicationRequiresAuthentication = 40_320
NotFound = 40_400
MethodNotAllowed = 40_500
RateLimitExceededNonfatal = 42_910
MaxPerConnectionPublishRateLimitExceededNonfatal = 42_911
RateLimitExceededFatal = 42_920
MaxPerConnectionPublishRateLimitExceededFatal = 42_921
InternalError = 50_000
InternalChannelError = 50_001
InternalConnectionError = 50_002
TimeoutError = 50_003
RequestFailedDueToOverloadedInstance = 50_004
ReactorOperationFailed = 70_000
ReactorOperationFailedPostOperationFailed = 70_001
ReactorOperationFailedPostOperationReturnedUnexpectedCode = 70_002
ReactorOperationFailedMaximumNumberOfConcurrentInFlightRequestsExceeded = 70_003
ExchangeErrorUnspecified = 71_000
ForcedReAttachmentDueToPermissionsChange = 71_001
ExchangePublisherErrorUnspecified = 71_100
NoSuchPublisher = 71_101
PublisherNotEnabledAsAnExchangePublisher = 71_102
ExchangeProductErrorUnspecified = 71_200
NoSuchProduct = 71_201
ProductDisabled = 71_202
NoSuchChannelInThisProduct = 71_203
ExchangeSubscriptionErrorUnspecified = 71_300
SubscriptionDisabled = 71_301
RequesterHasNoSubscriptionToThisProduct = 71_302
ConnectionFailed = 80_000
ConnectionFailedNoCompatibleTransport = 80_001
ConnectionSuspended = 80_002
Disconnected = 80_003
AlreadyConnected = 80_004
InvalidConnectionIDRemoteNotFound = 80_005
UnableToRecoverConnectionMessagesExpired = 80_006
UnableToRecoverConnectionMessageLimitExceeded = 80_007
UnableToRecoverConnectionConnectionExpired = 80_008
ConnectionNotEstablishedNoTransportHandle = 80_009
InvalidOperationInvalidTransportHandle = 80_010
UnableToRecoverConnectionIncompatibleAuthParams = 80_011
UnableToRecoverConnectionInvalidOrUnspecifiedConnectionSerial = 80_012
ProtocolError = 80_013
ConnectionTimedOut = 80_014
IncompatibleConnectionParameters = 80_015
OperationOnSupersededTransport = 80_016
ConnectionClosed = 80_017
InvalidConnectionIDInvalidFormat = 80_018
ClientConfiguredAuthenticationProviderRequestFailed = 80_019
ContinuityLossDueToMaximumSubscribeMessageRateExceeded = 80_020
ClientRestrictionNotSatisfied = 80_030
ChannelOperationFailed = 90_000
ChannelOperationFailedInvalidChannelState = 90_001
ChannelOperationFailedEpochExpiredOrNeverExisted = 90_002
UnableToRecoverChannelMessagesExpired = 90_003
UnableToRecoverChannelMessageLimitExceeded = 90_004
UnableToRecoverChannelNoMatchingEpoch = 90_005
UnableToRecoverChannelUnboundedRequest = 90_006
ChannelOperationFailedNoResponseFromServer = 90_007
MaximumNumberOfChannelsPerConnectionExceeded = 90_010
UnableToEnterPresenceChannelNoClientID = 91_000
UnableToEnterPresenceChannelInvalidChannelState = 91_001
UnableToLeavePresenceChannelThatIsNotEntered = 91_002
UnableToEnterPresenceChannelMaximumMemberLimitExceeded = 91_003
UnableToAutomaticallyReEnterPresenceChannel = 91_004
PresenceStateIsOutOfSync = 91_005
MemberImplicitlyLeftPresenceChannelConnectionClosed = 91_100
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 FromPrimitive for ErrorCode
impl FromPrimitive for ErrorCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.