pub fn load_snapshot(dir: &str) -> Result<Snapshot>Expand description
Load whatever a snapshot directory holds. The bank image’s size is
checked by flash_firmware when it is used as the recovery copy.
§Errors
Fails if a file is present but unreadable, or neither is there.