Enum probe_rs::flashing::FileDownloadError
source · [−]pub enum FileDownloadError {
Flash(FlashError),
IhexRead(ReaderError),
IO(Error),
Object(&'static str),
Elf(Error),
NoLoadableSegments,
}
Expand description
A finite list of all the errors that can occur when flashing a given file.
This includes corrupt file issues, OS permission issues as well as chip connectivity and memory boundary issues.
Variants
Flash(FlashError)
An error with the actual flashing procedure has occurred.
This is mostly an error in the communication with the target inflicted by a bad hardware connection or a probe-rs bug.
IhexRead(ReaderError)
Reading and decoding the IHEX file has failed due to the given error.
IO(Error)
An IO error has occurred while reading the firmware file.
Object(&'static str)
The given error has occurred while reading the object file.
Elf(Error)
Reading and decoding the given ELF file has resulted in the given error.
NoLoadableSegments
No loadable segments were found in the ELF file.
This is most likely because of a bad linker script.
Trait Implementations
sourceimpl Debug for FileDownloadError
impl Debug for FileDownloadError
sourceimpl Display for FileDownloadError
impl Display for FileDownloadError
sourceimpl Error for FileDownloadError
impl Error for FileDownloadError
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<Error> for FileDownloadError
impl From<Error> for FileDownloadError
sourceimpl From<Error> for FileDownloadError
impl From<Error> for FileDownloadError
sourceimpl From<FlashError> for FileDownloadError
impl From<FlashError> for FileDownloadError
sourcefn from(source: FlashError) -> Self
fn from(source: FlashError) -> Self
Converts to this type from the input type.
sourceimpl From<ReaderError> for FileDownloadError
impl From<ReaderError> for FileDownloadError
sourcefn from(source: ReaderError) -> Self
fn from(source: ReaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for FileDownloadError
impl Send for FileDownloadError
impl Sync for FileDownloadError
impl Unpin for FileDownloadError
impl !UnwindSafe for FileDownloadError
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