pub enum ErrorCode {
Show 17 variants
MissingRequiredField,
InvalidFieldType,
ValueOutOfRange,
InvalidEnumValue,
NetworkUnreachable,
ConnectionTimeout,
TlsHandshakeFailed,
RateLimited,
InvalidApiKey,
TokenExpired,
InsufficientPermissions,
BufferFull,
DiskWriteFailed,
EncryptionError,
PlatformConnectionFailed,
TopicNotFound,
MessageParseError,
}Expand description
Error codes as defined in the SDK specification.
Variants§
MissingRequiredField
E001: Missing required field
InvalidFieldType
E002: Invalid field type
ValueOutOfRange
E003: Value out of range
InvalidEnumValue
E004: Invalid enum value
NetworkUnreachable
E010: Network unreachable
ConnectionTimeout
E011: Connection timeout
TlsHandshakeFailed
E012: TLS handshake failed
RateLimited
E013: Rate limited
InvalidApiKey
E020: Invalid API key
TokenExpired
E021: Token expired
InsufficientPermissions
E022: Insufficient permissions
BufferFull
E030: Buffer full
DiskWriteFailed
E031: Disk write failed
EncryptionError
E032: Encryption error
PlatformConnectionFailed
E040: Platform connection failed
TopicNotFound
E041: Topic not found
MessageParseError
E042: Message parse error
Implementations§
Trait Implementations§
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP