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§
source§impl Debug for FileDownloadError
impl Debug for FileDownloadError
source§impl Display for FileDownloadError
impl Display for FileDownloadError
source§impl Error for FileDownloadError
impl Error for FileDownloadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for FileDownloadError
impl From<Error> for FileDownloadError
source§impl From<Error> for FileDownloadError
impl From<Error> for FileDownloadError
source§impl From<FlashError> for FileDownloadError
impl From<FlashError> for FileDownloadError
source§fn from(source: FlashError) -> Self
fn from(source: FlashError) -> Self
Converts to this type from the input type.
source§impl From<ReaderError> for FileDownloadError
impl From<ReaderError> for FileDownloadError
source§fn from(source: ReaderError) -> Self
fn from(source: ReaderError) -> Self
Converts to this type from the input type.