pub enum AgentErrorCode {
UnsupportedCommand,
UnsupportedRecord,
UnsupportedProtocolVersion,
InvalidCommand,
InvalidInput,
SequenceConflict,
RateLimited,
ProviderUnavailable,
Cancelled,
Internal,
}Expand description
Stable machine-readable protocol error code.
Variants§
UnsupportedCommand
The command discriminator is not supported by this host.
UnsupportedRecord
A required durable record discriminator is not supported.
UnsupportedProtocolVersion
The protocol version is outside the supported range.
InvalidCommand
A known command has invalid structure or state.
InvalidInput
Input failed canonical validation.
SequenceConflict
An append or transition used a stale expected sequence.
RateLimited
An upstream or host rate limit rejected the request.
A provider is temporarily unavailable.
Cancelled
The operation was cancelled.
Internal
An unexpected internal failure occurred.
Trait Implementations§
Source§impl Clone for AgentErrorCode
impl Clone for AgentErrorCode
Source§fn clone(&self) -> AgentErrorCode
fn clone(&self) -> AgentErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AgentErrorCode
Source§impl Debug for AgentErrorCode
impl Debug for AgentErrorCode
Source§impl<'de> Deserialize<'de> for AgentErrorCode
impl<'de> Deserialize<'de> for AgentErrorCode
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
impl Eq for AgentErrorCode
Source§impl PartialEq for AgentErrorCode
impl PartialEq for AgentErrorCode
Source§impl Serialize for AgentErrorCode
impl Serialize for AgentErrorCode
impl StructuralPartialEq for AgentErrorCode
Auto Trait Implementations§
impl Freeze for AgentErrorCode
impl RefUnwindSafe for AgentErrorCode
impl Send for AgentErrorCode
impl Sync for AgentErrorCode
impl Unpin for AgentErrorCode
impl UnsafeUnpin for AgentErrorCode
impl UnwindSafe for AgentErrorCode
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