pub struct InterruptConfig {
pub interrupt_before: Vec<String>,
pub interrupt_after: Vec<String>,
}Expand description
Configuration for interrupt points in graph execution.
Fields§
§interrupt_before: Vec<String>Nodes to interrupt BEFORE execution
interrupt_after: Vec<String>Nodes to interrupt AFTER execution
Implementations§
Source§impl InterruptConfig
impl InterruptConfig
pub fn new() -> Self
pub fn before(self, node: impl Into<String>) -> Self
pub fn after(self, node: impl Into<String>) -> Self
pub fn should_interrupt_before(&self, node: &str) -> bool
pub fn should_interrupt_after(&self, node: &str) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for InterruptConfig
impl Clone for InterruptConfig
Source§fn clone(&self) -> InterruptConfig
fn clone(&self) -> InterruptConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InterruptConfig
impl Debug for InterruptConfig
Source§impl Default for InterruptConfig
impl Default for InterruptConfig
Source§fn default() -> InterruptConfig
fn default() -> InterruptConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterruptConfig
impl RefUnwindSafe for InterruptConfig
impl Send for InterruptConfig
impl Sync for InterruptConfig
impl Unpin for InterruptConfig
impl UnsafeUnpin for InterruptConfig
impl UnwindSafe for InterruptConfig
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