pub struct Inner { /* private fields */ }
Expand description
Internal state of the Hyperdebug struct, this struct is reference counted such that Gpio, Spi and Uart sub-structs can all refer to this shared data, which is guaranteed to live on, even if the caller lets the outer Hyperdebug struct run out of scope.
Implementations§
Source§impl Inner
impl Inner
Sourcepub fn connect(&self) -> Result<Rc<Conn>>
pub fn connect(&self) -> Result<Rc<Conn>>
Establish connection with HyperDebug console USB interface.
Sourcepub fn cmd_no_output(&self, cmd: &str) -> Result<()>
pub fn cmd_no_output(&self, cmd: &str) -> Result<()>
Send a command to HyperDebug firmware, expecting to receive no output. Any output will be
reported through an Err()
return.
Sourcepub fn cmd_one_line_output(&self, cmd: &str) -> Result<String>
pub fn cmd_one_line_output(&self, cmd: &str) -> Result<String>
Send a command to HyperDebug firmware, expecting to receive a single line of output. Any
more or less output will be reported through an Err()
return.
Sourcepub fn cmd_one_line_output_match<'a>(
&self,
cmd: &str,
regex: &Regex,
buf: &'a mut String,
) -> Result<Captures<'a>>
pub fn cmd_one_line_output_match<'a>( &self, cmd: &str, regex: &Regex, buf: &'a mut String, ) -> Result<Captures<'a>>
Send a command to HyperDebug firmware, expecting to receive a single line of output. Any
more or less output will be reported through an Err()
return.
Auto Trait Implementations§
impl !Freeze for Inner
impl !RefUnwindSafe for Inner
impl !Send for Inner
impl !Sync for Inner
impl Unpin for Inner
impl !UnwindSafe for Inner
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