pub struct OpenOcd { /* private fields */ }
Expand description
Represents an OpenOCD server that we can interact with.
Implementations§
Source§impl OpenOcd
impl OpenOcd
Sourcepub fn spawn(path: &Path, log_stdio: bool) -> Result<Self>
pub fn spawn(path: &Path, log_stdio: bool) -> Result<Self>
Spawn an OpenOCD server with given path.
pub fn shutdown(self) -> Result<()>
Sourcepub fn execute(&mut self, cmd: &str) -> Result<String>
pub fn execute(&mut self, cmd: &str) -> Result<String>
Send a TCL command to OpenOCD and wait for its response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenOcd
impl RefUnwindSafe for OpenOcd
impl Send for OpenOcd
impl Sync for OpenOcd
impl Unpin for OpenOcd
impl UnwindSafe for OpenOcd
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