pub struct DebugSession { /* private fields */ }Expand description
Debug session for a workflow execution.
Implementations§
Source§impl DebugSession
impl DebugSession
Sourcepub fn add_breakpoint(
&self,
task_id: String,
condition: Option<String>,
) -> String
pub fn add_breakpoint( &self, task_id: String, condition: Option<String>, ) -> String
Add a breakpoint.
Sourcepub fn remove_breakpoint(&self, breakpoint_id: &str) -> Option<Breakpoint>
pub fn remove_breakpoint(&self, breakpoint_id: &str) -> Option<Breakpoint>
Remove a breakpoint.
Sourcepub fn enable_breakpoint(&self, breakpoint_id: &str)
pub fn enable_breakpoint(&self, breakpoint_id: &str)
Enable a breakpoint.
Sourcepub fn disable_breakpoint(&self, breakpoint_id: &str)
pub fn disable_breakpoint(&self, breakpoint_id: &str)
Disable a breakpoint.
Sourcepub async fn should_pause(&self, task_id: &str) -> bool
pub async fn should_pause(&self, task_id: &str) -> bool
Check if execution should pause at this task.
Sourcepub async fn update_task_state(&self, task_id: String, state: TaskDebugState)
pub async fn update_task_state(&self, task_id: String, state: TaskDebugState)
Update task state.
Sourcepub async fn set_variable(&self, name: String, value: Value)
pub async fn set_variable(&self, name: String, value: Value)
Set a variable value.
Sourcepub fn execution_id(&self) -> &str
pub fn execution_id(&self) -> &str
Get execution ID.
Auto Trait Implementations§
impl Freeze for DebugSession
impl !RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnsafeUnpin for DebugSession
impl !UnwindSafe for DebugSession
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