#[repr(u16)]pub enum TransportErrorCode {
Show 15 variants
ConnectionFailed = 100,
Timeout = 101,
NotFound = 102,
InvalidRequest = 103,
RemoteError = 104,
MessageTooLarge = 105,
EncryptionError = 106,
SerializationError = 107,
Unauthorized = 108,
RateLimited = 109,
NotSupported = 110,
InternalError = 111,
CircuitBreakerOpen = 112,
StreamError = 113,
ConfigurationError = 114,
}Expand description
Transport-specific error codes.
Variants§
ConnectionFailed = 100
Connection to endpoint failed or was lost.
Timeout = 101
Operation timed out.
NotFound = 102
Target endpoint not found/service unavailable.
InvalidRequest = 103
Invalid request format or parameters.
RemoteError = 104
Remote endpoint returned an application error.
MessageTooLarge = 105
Message too large for transport.
EncryptionError = 106
Encryption/decryption failed.
SerializationError = 107
Serialization/deserialization failed.
Authentication/authorization failed.
RateLimited = 109
Rate limit exceeded.
NotSupported = 110
Feature not supported by this transport.
InternalError = 111
Internal transport error (bug, corrupted state).
CircuitBreakerOpen = 112
Circuit breaker is open; request rejected.
StreamError = 113
Stream already in use or closed.
ConfigurationError = 114
Configuration error (invalid settings).
Implementations§
Source§impl TransportErrorCode
impl TransportErrorCode
Sourcepub fn IsRetryable(&self) -> bool
pub fn IsRetryable(&self) -> bool
Returns true if this error code is retryable.
Sourcepub fn RecommendedRetryDelayMilliseconds(&self) -> u64
pub fn RecommendedRetryDelayMilliseconds(&self) -> u64
Returns the recommended retry delay in milliseconds for this error.
Trait Implementations§
Source§impl Clone for TransportErrorCode
impl Clone for TransportErrorCode
Source§fn clone(&self) -> TransportErrorCode
fn clone(&self) -> TransportErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportErrorCode
impl Debug for TransportErrorCode
Source§impl<'de> Deserialize<'de> for TransportErrorCode
impl<'de> Deserialize<'de> for TransportErrorCode
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 Hash for TransportErrorCode
impl Hash for TransportErrorCode
Source§impl PartialEq for TransportErrorCode
impl PartialEq for TransportErrorCode
Source§impl Serialize for TransportErrorCode
impl Serialize for TransportErrorCode
impl Copy for TransportErrorCode
impl Eq for TransportErrorCode
impl StructuralPartialEq for TransportErrorCode
Auto Trait Implementations§
impl Freeze for TransportErrorCode
impl RefUnwindSafe for TransportErrorCode
impl Send for TransportErrorCode
impl Sync for TransportErrorCode
impl Unpin for TransportErrorCode
impl UnsafeUnpin for TransportErrorCode
impl UnwindSafe for TransportErrorCode
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§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.