pub trait ImageLoader {
// Required method
fn load(
&self,
flash_loader: &mut FlashLoader,
session: &mut Session,
file: &mut dyn ImageReader,
) -> Result<(), FileDownloadError>;
}
Expand description
Load and parse a firmware in a particular format, and add it to the flash loader.
Based on the image loader, probe-rs may apply certain transformations to the firmware.
Required Methods§
Sourcefn load(
&self,
flash_loader: &mut FlashLoader,
session: &mut Session,
file: &mut dyn ImageReader,
) -> Result<(), FileDownloadError>
fn load( &self, flash_loader: &mut FlashLoader, session: &mut Session, file: &mut dyn ImageReader, ) -> Result<(), FileDownloadError>
Loads the given image.