pub struct EspFirmwareInfoLoad;
Expand description
A firmware info loader that tries to read the firmware info directly from a user-supplied buffer which can be re-used for other purposes afterwards.
This is a more efficient version of the now-deprecated EspFirmwareInfoLoader
.
Implementations§
Source§impl EspFirmwareInfoLoad
impl EspFirmwareInfoLoad
Sourcepub fn fetch(
&self,
data: &[u8],
info: &mut FirmwareInfo,
) -> Result<bool, EspIOError>
pub fn fetch( &self, data: &[u8], info: &mut FirmwareInfo, ) -> Result<bool, EspIOError>
Fetches firmware information from the firmware binary data chunk loaded so far.
Returns true
if the information was successfully fetched.
Returns false
if the firmware data has not been loaded completely yet.
pub fn load_firmware_info( info: &mut FirmwareInfo, app_desc: &esp_app_desc_t, ) -> Result<(), EspError>
Trait Implementations§
Source§impl ErrorType for EspFirmwareInfoLoad
impl ErrorType for EspFirmwareInfoLoad
Source§type Error = EspIOError
type Error = EspIOError
Error type of all the IO operations on this type.