pub struct TaskStateMachine;Expand description
Validates task state transitions according to the A2A protocol.
Implementations§
Source§impl TaskStateMachine
impl TaskStateMachine
Sourcepub fn is_terminal(state: TaskState) -> bool
pub fn is_terminal(state: TaskState) -> bool
Check if a state is terminal (no further transitions allowed).
Sourcepub fn can_transition(from: TaskState, to: TaskState) -> bool
pub fn can_transition(from: TaskState, to: TaskState) -> bool
Check if a transition from one state to another is valid.
Auto Trait Implementations§
impl Freeze for TaskStateMachine
impl RefUnwindSafe for TaskStateMachine
impl Send for TaskStateMachine
impl Sync for TaskStateMachine
impl Unpin for TaskStateMachine
impl UnsafeUnpin for TaskStateMachine
impl UnwindSafe for TaskStateMachine
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