pub struct Interrupt {
pub value: Value,
pub when: InterruptType,
pub node: Option<String>,
}Expand description
An interrupt that occurred during execution.
Interrupts pause graph execution and can be used for human-in-the-loop patterns or to handle errors gracefully.
Fields§
§value: ValueThe value that triggered the interrupt
when: InterruptTypeWhen the interrupt occurred
node: Option<String>The node where the interrupt occurred
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interrupt
impl<'de> Deserialize<'de> for Interrupt
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 Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnsafeUnpin for Interrupt
impl UnwindSafe for Interrupt
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