pub struct DebugControl { /* private fields */ }Expand description
A controller used to manage breakpoints and execution flow for a running Axon.
This is typically stored in the Bus to allow the Axon runtime to check
for pause-points between node executions.
Implementations§
Source§impl DebugControl
impl DebugControl
Sourcepub fn set_breakpoint(&self, node_id: String)
pub fn set_breakpoint(&self, node_id: String)
Add a breakpoint for a specific node ID.
Sourcepub fn remove_breakpoint(&self, node_id: &str)
pub fn remove_breakpoint(&self, node_id: &str)
Remove a breakpoint for a specific node ID.
Sourcepub fn should_pause(&self, node_id: &str) -> bool
pub fn should_pause(&self, node_id: &str) -> bool
Check if the current node should trigger a pause.
This consumes the internal “pause_next” flag if it was set.
Sourcepub async fn wait_if_needed(&self, node_id: &str)
pub async fn wait_if_needed(&self, node_id: &str)
Check if the current node requires a pause and wait if so.
Deprecated in favor of manual should_pause + wait for better event timing.
Sourcepub fn state(&self) -> DebugState
pub fn state(&self) -> DebugState
Get the current debugger state.
Sourcepub fn list_breakpoints(&self) -> Vec<String>
pub fn list_breakpoints(&self) -> Vec<String>
List all currently set breakpoint node IDs.
Trait Implementations§
Source§impl Clone for DebugControl
impl Clone for DebugControl
Source§fn clone(&self) -> DebugControl
fn clone(&self) -> DebugControl
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 moreAuto Trait Implementations§
impl Freeze for DebugControl
impl RefUnwindSafe for DebugControl
impl Send for DebugControl
impl Sync for DebugControl
impl Unpin for DebugControl
impl UnsafeUnpin for DebugControl
impl UnwindSafe for DebugControl
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