pub struct DebuggerSession { /* private fields */ }Expand description
Debugger session
Implementations§
Source§impl DebuggerSession
impl DebuggerSession
Sourcepub fn set_source(&mut self, source: String, file: String)
pub fn set_source(&mut self, source: String, file: String)
Set the source code for listing
Sourcepub fn state_mut(&mut self) -> &mut DebuggerState
pub fn state_mut(&mut self) -> &mut DebuggerState
Get a mutable reference to the debugger state
Sourcepub fn state(&self) -> &DebuggerState
pub fn state(&self) -> &DebuggerState
Get a reference to the debugger state
Sourcepub fn handle_command(&mut self, cmd: &str) -> (String, CommandAction)
pub fn handle_command(&mut self, cmd: &str) -> (String, CommandAction)
Handle a debugger command, returning (message, action)
Auto Trait Implementations§
impl Freeze for DebuggerSession
impl !RefUnwindSafe for DebuggerSession
impl !Send for DebuggerSession
impl !Sync for DebuggerSession
impl Unpin for DebuggerSession
impl !UnwindSafe for DebuggerSession
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