pub enum A2aError {
RpcError {
code: A2aErrorCode,
message: String,
data: Option<Box<dyn Error + Send + Sync>>,
},
TaskNotFound(String),
TaskNotCancelable(String),
InvalidStateTransition {
from: TaskState,
to: TaskState,
},
UnsupportedOperation(String),
ContentTypeNotSupported(String),
Serialization(Error),
Internal(String),
}Expand description
A2A protocol error
Variants§
RpcError
TaskNotFound(String)
TaskNotCancelable(String)
InvalidStateTransition
UnsupportedOperation(String)
ContentTypeNotSupported(String)
Serialization(Error)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Error for A2aError
impl Error for A2aError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for A2aError
impl !UnwindSafe for A2aError
impl Freeze for A2aError
impl Send for A2aError
impl Sync for A2aError
impl Unpin for A2aError
impl UnsafeUnpin for A2aError
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