pub struct DebugContext {
pub agent_id: [u8; 16],
pub session_id: [u8; 16],
pub enabled: bool,
pub breakpoints: Vec<Breakpoint>,
pub watches: Vec<WatchExpression>,
}Expand description
Debug context for an agent
Fields§
§agent_id: [u8; 16]Agent ID being debugged
session_id: [u8; 16]Debug session ID
enabled: boolDebug mode enabled
breakpoints: Vec<Breakpoint>Breakpoints
watches: Vec<WatchExpression>Watch expressions
Implementations§
Source§impl DebugContext
impl DebugContext
Sourcepub fn add_breakpoint(
&mut self,
location: String,
condition: Option<String>,
) -> u64
pub fn add_breakpoint( &mut self, location: String, condition: Option<String>, ) -> u64
Add a breakpoint
Sourcepub fn remove_breakpoint(&mut self, id: u64) -> bool
pub fn remove_breakpoint(&mut self, id: u64) -> bool
Remove a breakpoint
Sourcepub fn remove_watch(&mut self, id: u64) -> bool
pub fn remove_watch(&mut self, id: u64) -> bool
Remove a watch expression
Trait Implementations§
Source§impl Clone for DebugContext
impl Clone for DebugContext
Source§fn clone(&self) -> DebugContext
fn clone(&self) -> DebugContext
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 DebugContext
impl Debug for DebugContext
Source§impl<'de> Deserialize<'de> for DebugContext
impl<'de> Deserialize<'de> for DebugContext
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 DebugContext
impl RefUnwindSafe for DebugContext
impl Send for DebugContext
impl Sync for DebugContext
impl Unpin for DebugContext
impl UnwindSafe for DebugContext
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