pub enum A2aErrorCode {
Show 13 variants
JsonParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
TaskNotFound,
TaskNotCancelable,
PushNotificationNotSupported,
UnsupportedOperation,
ContentTypeNotSupported,
InvalidAgentResponse,
AuthenticatedExtendedCardNotConfigured,
Custom(i32),
}Expand description
A2A error code enum for type-safe error handling
Variants§
JsonParseError
InvalidRequest
MethodNotFound
InvalidParams
InternalError
TaskNotFound
TaskNotCancelable
PushNotificationNotSupported
UnsupportedOperation
ContentTypeNotSupported
InvalidAgentResponse
AuthenticatedExtendedCardNotConfigured
Custom(i32)
Custom error code
Trait Implementations§
Source§impl Clone for A2aErrorCode
impl Clone for A2aErrorCode
Source§fn clone(&self) -> A2aErrorCode
fn clone(&self) -> A2aErrorCode
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 A2aErrorCode
Source§impl Debug for A2aErrorCode
impl Debug for A2aErrorCode
Source§impl Display for A2aErrorCode
impl Display for A2aErrorCode
impl Eq for A2aErrorCode
Source§impl From<A2aErrorCode> for i32
impl From<A2aErrorCode> for i32
Source§fn from(code: A2aErrorCode) -> Self
fn from(code: A2aErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<i32> for A2aErrorCode
impl From<i32> for A2aErrorCode
Source§impl PartialEq for A2aErrorCode
impl PartialEq for A2aErrorCode
impl StructuralPartialEq for A2aErrorCode
Auto Trait Implementations§
impl Freeze for A2aErrorCode
impl RefUnwindSafe for A2aErrorCode
impl Send for A2aErrorCode
impl Sync for A2aErrorCode
impl Unpin for A2aErrorCode
impl UnsafeUnpin for A2aErrorCode
impl UnwindSafe for A2aErrorCode
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> 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.