pub enum A2aError {
InvalidTransition {
from: TaskState,
to: TaskState,
},
InvalidMessageTransition {
from: MsgState,
to: MsgState,
},
ClaimConflict(String),
Serde(String),
}Expand description
Errors produced by wire-schema validation.
Variants§
InvalidTransition
A lifecycle transition was rejected by the FSM.
Fields
InvalidMessageTransition
A message-state transition was rejected.
Fields
ClaimConflict(String)
A message could not be claimed (already held).
Serde(String)
Serialization / deserialization failed.
Trait Implementations§
Source§impl Error for A2aError
impl Error for A2aError
1.30.0 · 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 Freeze for A2aError
impl RefUnwindSafe for A2aError
impl Send for A2aError
impl Sync for A2aError
impl Unpin for A2aError
impl UnsafeUnpin for A2aError
impl UnwindSafe 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