pub struct DebuggerEngine { /* private fields */ }Expand description
Transport-neutral debugger state machine.
Implementations§
Source§impl DebuggerEngine
impl DebuggerEngine
pub fn new(transport: Transport) -> Self
pub fn set_transport(&mut self, transport: Transport)
Sourcepub fn set_ble_segment_payload(
&mut self,
size: usize,
) -> Result<(), &'static str>
pub fn set_ble_segment_payload( &mut self, size: usize, ) -> Result<(), &'static str>
Set the number of frame octets carried after each one-byte SAR header.
Sourcepub fn attach(&mut self) -> Result<(), &'static str>
pub fn attach(&mut self) -> Result<(), &'static str>
Queue the non-destructive full-protocol attach reads.
pub fn prop_get(&mut self, key: u32) -> Result<(), &'static str>
pub fn refresh_known_properties(&mut self)
pub fn prop_set(&mut self, key: u32, value: &[u8]) -> Result<(), &'static str>
Sourcepub fn prop_set_text(&mut self, key: u32, value: &str) -> Result<(), String>
pub fn prop_set_text(&mut self, key: u32, value: &str) -> Result<(), String>
Encode a user-facing value according to the known property schema.
pub fn prop_insert( &mut self, key: u32, value: &[u8], ) -> Result<(), &'static str>
pub fn prop_remove( &mut self, key: u32, value: &[u8], ) -> Result<(), &'static str>
pub fn command(&mut self, command: &str) -> Result<(), &'static str>
Sourcepub fn ingest(&mut self, bytes: &[u8])
pub fn ingest(&mut self, bytes: &[u8])
Feed a byte-stream chunk (serial) or one ATT value (BLE).