DebuggerEngine

Struct DebuggerEngine 

Source
pub struct DebuggerEngine { /* private fields */ }
Expand description

Transport-neutral debugger state machine.

Implementations§

Source§

impl DebuggerEngine

Source

pub fn new(transport: Transport) -> Self

Source

pub fn set_transport(&mut self, transport: Transport)

Source

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.

Source

pub fn attach(&mut self) -> Result<(), &'static str>

Queue the non-destructive full-protocol attach reads.

Source

pub fn prop_get(&mut self, key: u32) -> Result<(), &'static str>

Source

pub fn refresh_known_properties(&mut self)

Source

pub fn prop_set(&mut self, key: u32, value: &[u8]) -> Result<(), &'static str>

Source

pub fn prop_set_text(&mut self, key: u32, value: &str) -> Result<(), String>

Encode a user-facing value according to the known property schema.

Source

pub fn prop_insert( &mut self, key: u32, value: &[u8], ) -> Result<(), &'static str>

Source

pub fn prop_remove( &mut self, key: u32, value: &[u8], ) -> Result<(), &'static str>

Source

pub fn command(&mut self, command: &str) -> Result<(), &'static str>

Source

pub fn ingest(&mut self, bytes: &[u8])

Feed a byte-stream chunk (serial) or one ATT value (BLE).

Source

pub fn tick(&mut self, now_ms: u64)

Source

pub fn take_outbound(&mut self) -> Option<Vec<u8>>

Source

pub fn take_event(&mut self) -> Option<Event>

Source

pub fn disconnected(&mut self, reason: impl Into<String>)

Trait Implementations§

Source§

impl Default for DebuggerEngine

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.