#[repr(u32)]
pub enum ErrorCode {
Show 119 variants
NotSet,
UnknownError,
NoError,
BadRequest,
InvalidRequestBody,
InvalidParameterName,
InvalidParameterValue,
InvalidHeader,
InvalidCredential,
InvalidConnectionID,
InvalidMessageID,
InvalidContentLength,
MaximumMessageLengthExceeded,
InvalidChannelName,
StaleRingState,
InvalidClientID,
InvalidMessageDataOrEncoding,
ResourceDisposed,
InvalidDeviceID,
BatchError,
InvalidPublishRequestUnspecified,
InvalidPublishRequestInvalidClientSpecifiedID,
Testing,
Unauthorized,
InvalidCredentials,
IncompatibleCredentials,
InvalidUseOfBasicAuthOverNonTLSTransport,
TimestampNotCurrent,
NonceValueReplayed,
UnableToObtainCredentialsFromGivenParameters,
AccountDisabled,
AccountRestrictedConnectionLimitsExceeded,
AccountBlockedMessageLimitsExceeded,
AccountBlocked,
AccountRestrictedChannelLimitsExceeded,
ApplicationDisabled,
KeyErrorUnspecified,
KeyRevoked,
KeyExpired,
KeyDisabled,
TokenErrorUnspecified,
TokenRevoked,
TokenExpired,
TokenUnrecognised,
InvalidJWTFormat,
InvalidTokenFormat,
ConnectionBlockedLimitsExceeded,
OperationNotPermittedWithProvidedCapability,
ErrorFromClientTokenCallback,
NoWayToRenewAuthToken,
Forbidden,
AccountDoesNotPermitTLSConnection,
OperationRequiresTLSConnection,
ApplicationRequiresAuthentication,
NotFound,
MethodNotAllowed,
RateLimitExceededNonfatal,
MaxPerConnectionPublishRateLimitExceededNonfatal,
RateLimitExceededFatal,
MaxPerConnectionPublishRateLimitExceededFatal,
InternalError,
InternalChannelError,
InternalConnectionError,
TimeoutError,
RequestFailedDueToOverloadedInstance,
ReactorOperationFailed,
ReactorOperationFailedPostOperationFailed,
ReactorOperationFailedPostOperationReturnedUnexpectedCode,
ReactorOperationFailedMaximumNumberOfConcurrentInFlightRequestsExceeded,
ExchangeErrorUnspecified,
ForcedReAttachmentDueToPermissionsChange,
ExchangePublisherErrorUnspecified,
NoSuchPublisher,
PublisherNotEnabledAsAnExchangePublisher,
ExchangeProductErrorUnspecified,
NoSuchProduct,
ProductDisabled,
NoSuchChannelInThisProduct,
ExchangeSubscriptionErrorUnspecified,
SubscriptionDisabled,
RequesterHasNoSubscriptionToThisProduct,
ConnectionFailed,
ConnectionFailedNoCompatibleTransport,
ConnectionSuspended,
Disconnected,
AlreadyConnected,
InvalidConnectionIDRemoteNotFound,
UnableToRecoverConnectionMessagesExpired,
UnableToRecoverConnectionMessageLimitExceeded,
UnableToRecoverConnectionConnectionExpired,
ConnectionNotEstablishedNoTransportHandle,
InvalidOperationInvalidTransportHandle,
UnableToRecoverConnectionIncompatibleAuthParams,
UnableToRecoverConnectionInvalidOrUnspecifiedConnectionSerial,
ProtocolError,
ConnectionTimedOut,
IncompatibleConnectionParameters,
OperationOnSupersededTransport,
ConnectionClosed,
InvalidConnectionIDInvalidFormat,
ClientConfiguredAuthenticationProviderRequestFailed,
ContinuityLossDueToMaximumSubscribeMessageRateExceeded,
ClientRestrictionNotSatisfied,
ChannelOperationFailed,
ChannelOperationFailedInvalidChannelState,
ChannelOperationFailedEpochExpiredOrNeverExisted,
UnableToRecoverChannelMessagesExpired,
UnableToRecoverChannelMessageLimitExceeded,
UnableToRecoverChannelNoMatchingEpoch,
UnableToRecoverChannelUnboundedRequest,
ChannelOperationFailedNoResponseFromServer,
MaximumNumberOfChannelsPerConnectionExceeded,
UnableToEnterPresenceChannelNoClientID,
UnableToEnterPresenceChannelInvalidChannelState,
UnableToLeavePresenceChannelThatIsNotEntered,
UnableToEnterPresenceChannelMaximumMemberLimitExceeded,
UnableToAutomaticallyReEnterPresenceChannel,
PresenceStateIsOutOfSync,
MemberImplicitlyLeftPresenceChannelConnectionClosed,
}
Variants
NotSet
UnknownError
NoError
BadRequest
InvalidRequestBody
InvalidParameterName
InvalidParameterValue
InvalidHeader
InvalidCredential
InvalidConnectionID
InvalidMessageID
InvalidContentLength
MaximumMessageLengthExceeded
InvalidChannelName
StaleRingState
InvalidClientID
InvalidMessageDataOrEncoding
ResourceDisposed
InvalidDeviceID
BatchError
InvalidPublishRequestUnspecified
InvalidPublishRequestInvalidClientSpecifiedID
Testing
Unauthorized
InvalidCredentials
IncompatibleCredentials
InvalidUseOfBasicAuthOverNonTLSTransport
TimestampNotCurrent
NonceValueReplayed
UnableToObtainCredentialsFromGivenParameters
AccountDisabled
AccountRestrictedConnectionLimitsExceeded
AccountBlockedMessageLimitsExceeded
AccountBlocked
AccountRestrictedChannelLimitsExceeded
ApplicationDisabled
KeyErrorUnspecified
KeyRevoked
KeyExpired
KeyDisabled
TokenErrorUnspecified
TokenRevoked
TokenExpired
TokenUnrecognised
InvalidJWTFormat
InvalidTokenFormat
ConnectionBlockedLimitsExceeded
OperationNotPermittedWithProvidedCapability
ErrorFromClientTokenCallback
NoWayToRenewAuthToken
Forbidden
AccountDoesNotPermitTLSConnection
OperationRequiresTLSConnection
ApplicationRequiresAuthentication
NotFound
MethodNotAllowed
RateLimitExceededNonfatal
MaxPerConnectionPublishRateLimitExceededNonfatal
RateLimitExceededFatal
MaxPerConnectionPublishRateLimitExceededFatal
InternalError
InternalChannelError
InternalConnectionError
TimeoutError
RequestFailedDueToOverloadedInstance
ReactorOperationFailed
ReactorOperationFailedPostOperationFailed
ReactorOperationFailedPostOperationReturnedUnexpectedCode
ReactorOperationFailedMaximumNumberOfConcurrentInFlightRequestsExceeded
ExchangeErrorUnspecified
ForcedReAttachmentDueToPermissionsChange
ExchangePublisherErrorUnspecified
NoSuchPublisher
PublisherNotEnabledAsAnExchangePublisher
ExchangeProductErrorUnspecified
NoSuchProduct
ProductDisabled
NoSuchChannelInThisProduct
ExchangeSubscriptionErrorUnspecified
SubscriptionDisabled
RequesterHasNoSubscriptionToThisProduct
ConnectionFailed
ConnectionFailedNoCompatibleTransport
ConnectionSuspended
Disconnected
AlreadyConnected
InvalidConnectionIDRemoteNotFound
UnableToRecoverConnectionMessagesExpired
UnableToRecoverConnectionMessageLimitExceeded
UnableToRecoverConnectionConnectionExpired
ConnectionNotEstablishedNoTransportHandle
InvalidOperationInvalidTransportHandle
UnableToRecoverConnectionIncompatibleAuthParams
UnableToRecoverConnectionInvalidOrUnspecifiedConnectionSerial
ProtocolError
ConnectionTimedOut
IncompatibleConnectionParameters
OperationOnSupersededTransport
ConnectionClosed
InvalidConnectionIDInvalidFormat
ClientConfiguredAuthenticationProviderRequestFailed
ContinuityLossDueToMaximumSubscribeMessageRateExceeded
ClientRestrictionNotSatisfied
ChannelOperationFailed
ChannelOperationFailedInvalidChannelState
ChannelOperationFailedEpochExpiredOrNeverExisted
UnableToRecoverChannelMessagesExpired
UnableToRecoverChannelMessageLimitExceeded
UnableToRecoverChannelNoMatchingEpoch
UnableToRecoverChannelUnboundedRequest
ChannelOperationFailedNoResponseFromServer
MaximumNumberOfChannelsPerConnectionExceeded
UnableToEnterPresenceChannelNoClientID
UnableToEnterPresenceChannelInvalidChannelState
UnableToLeavePresenceChannelThatIsNotEntered
UnableToEnterPresenceChannelMaximumMemberLimitExceeded
UnableToAutomaticallyReEnterPresenceChannel
PresenceStateIsOutOfSync
MemberImplicitlyLeftPresenceChannelConnectionClosed
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
sourcefn 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
sourceimpl FromPrimitive for ErrorCode
impl FromPrimitive for ErrorCode
sourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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 moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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 moresourceimpl Ord for ErrorCode
impl Ord for ErrorCode
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<ErrorCode> for ErrorCode
impl PartialOrd<ErrorCode> for ErrorCode
sourcefn partial_cmp(&self, other: &ErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorCode) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.