Enum probe_rs::debug::DebugError
source · [−]pub enum DebugError {
Io(Error),
DebugData(Error),
Parse(Error),
NonUtf8(Utf8Error),
Probe(Error),
CharConversion(CharTryFromError),
IntConversion(TryFromIntError),
NoValidHaltLocation {
message: String,
pc_at_error: u64,
},
Other(Error),
}
Expand description
An error occurred while debugging the target.
Variants
Io(Error)
An IO error occurred when accessing debug data.
DebugData(Error)
An error occurred while accessing debug data.
Parse(Error)
Something failed while parsing debug data.
NonUtf8(Utf8Error)
Non-UTF8 data was found in the debug data.
Probe(Error)
A probe-rs error occurred.
CharConversion(CharTryFromError)
A char could not be created from the given string.
IntConversion(TryFromIntError)
An int could not be created from the given string.
NoValidHaltLocation
Fields
message: String
A message that can be displayed to the user to help them make an informed recovery choice.
pc_at_error: u64
The value of the program counter for which a halt was requested.
Errors encountered while determining valid halt locations for breakpoints and stepping. These are distinct from other errors because they terminate the current step, and result in a user message, but they do not interrupt the rest of the debug session.
Other(Error)
Some other error occurred.
Trait Implementations
sourceimpl Debug for DebugError
impl Debug for DebugError
sourceimpl Display for DebugError
impl Display for DebugError
sourceimpl Error for DebugError
impl Error for DebugError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CharTryFromError> for DebugError
impl From<CharTryFromError> for DebugError
sourcefn from(source: CharTryFromError) -> Self
fn from(source: CharTryFromError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for DebugError
impl From<Error> for DebugError
sourceimpl From<Error> for DebugError
impl From<Error> for DebugError
sourceimpl From<Error> for DebugError
impl From<Error> for DebugError
sourceimpl From<Error> for DebugError
impl From<Error> for DebugError
sourceimpl From<Error> for DebugError
impl From<Error> for DebugError
sourceimpl From<TryFromIntError> for DebugError
impl From<TryFromIntError> for DebugError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DebugError
impl Send for DebugError
impl Sync for DebugError
impl Unpin for DebugError
impl !UnwindSafe for DebugError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more