[][src]Trait debug_probe::debug_probe::DebugProbe

pub trait DebugProbe: DAPAccess {
    fn new_from_probe_info(
        info: &DebugProbeInfo
    ) -> Result<Box<Self>, DebugProbeError>
    where
        Self: Sized
;
fn get_name(&self) -> &str;
fn attach(
        &mut self,
        protocol: Option<WireProtocol>
    ) -> Result<WireProtocol, DebugProbeError>;
fn detach(&mut self) -> Result<(), DebugProbeError>;
fn target_reset(&mut self) -> Result<(), DebugProbeError>; }

Required methods

fn new_from_probe_info(
    info: &DebugProbeInfo
) -> Result<Box<Self>, DebugProbeError> where
    Self: Sized

fn get_name(&self) -> &str

Get human readable name for the probe

fn attach(
    &mut self,
    protocol: Option<WireProtocol>
) -> Result<WireProtocol, DebugProbeError>

Enters debug mode

fn detach(&mut self) -> Result<(), DebugProbeError>

Leave debug mode

fn target_reset(&mut self) -> Result<(), DebugProbeError>

Resets the target device.

Loading content...

Implementors

impl DebugProbe for FakeProbe[src]

fn get_name(&self) -> &str[src]

Get human readable name for the probe

fn attach(
    &mut self,
    protocol: Option<WireProtocol>
) -> Result<WireProtocol, DebugProbeError>
[src]

Enters debug mode

fn detach(&mut self) -> Result<(), DebugProbeError>[src]

Leave debug mode

fn target_reset(&mut self) -> Result<(), DebugProbeError>[src]

Resets the target device.

Loading content...