Enum probe_rs::HaltReason
source · pub enum HaltReason {
Multiple,
Breakpoint(BreakpointCause),
Exception,
Watchpoint,
Step,
Request,
External,
Unknown,
}
Expand description
The reason why a core was halted.
Variants§
Multiple
Multiple reasons for a halt.
This can happen for example when a single instruction step ends up on a breakpoint, after which both breakpoint and step / request are set.
Breakpoint(BreakpointCause)
Core halted due to a breakpoint. The cause is Unknown
if we cannot distinguish between a hardware and software breakpoint.
Exception
Core halted due to an exception, e.g. an an interrupt.
Watchpoint
Core halted due to a data watchpoint
Step
Core halted after single step
Request
Core halted because of a debugger request
External
External halt request
Unknown
Unknown reason for halt.
This can happen for example when the core is already halted when we connect.
Trait Implementations§
source§impl Clone for HaltReason
impl Clone for HaltReason
source§fn clone(&self) -> HaltReason
fn clone(&self) -> HaltReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HaltReason
impl Debug for HaltReason
source§impl PartialEq<HaltReason> for HaltReason
impl PartialEq<HaltReason> for HaltReason
source§fn eq(&self, other: &HaltReason) -> bool
fn eq(&self, other: &HaltReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HaltReason
impl Eq for HaltReason
impl StructuralEq for HaltReason
impl StructuralPartialEq for HaltReason
Auto Trait Implementations§
impl RefUnwindSafe for HaltReason
impl Send for HaltReason
impl Sync for HaltReason
impl Unpin for HaltReason
impl UnwindSafe for HaltReason
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.