pub enum InterruptResult {
Acknowledged,
Paused,
Interrupted {
partial_result: Option<String>,
},
TaskTerminated {
partial_result: Option<AgentOutput>,
},
Ignored,
}Expand description
中断处理结果
Variants§
Acknowledged
中断已确认,继续执行
Paused
中断导致暂停
Interrupted
已中断(带部分结果)
TaskTerminated
中断导致任务终止
Fields
§
partial_result: Option<AgentOutput>部分结果
Ignored
中断被忽略(Agent 在关键区段)
Trait Implementations§
Source§impl Clone for InterruptResult
impl Clone for InterruptResult
Source§fn clone(&self) -> InterruptResult
fn clone(&self) -> InterruptResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptResult
impl Debug for InterruptResult
Source§impl<'de> Deserialize<'de> for InterruptResult
impl<'de> Deserialize<'de> for InterruptResult
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
Auto Trait Implementations§
impl Freeze for InterruptResult
impl RefUnwindSafe for InterruptResult
impl Send for InterruptResult
impl Sync for InterruptResult
impl Unpin for InterruptResult
impl UnsafeUnpin for InterruptResult
impl UnwindSafe for InterruptResult
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