pub unsafe fn commit_to_download(
boot_services: *const BootServices,
image_handle: *mut (),
screen: &mut Screen,
config: DownloadCommitConfig,
) -> !Expand description
Commit to download - this exits boot services and downloads in bare-metal mode.
§POINT OF NO RETURN
Once this function calls ExitBootServices, there’s no going back. The system will either:
- Download successfully and reboot
- Fail and panic (requires power cycle)
§Arguments
boot_services- Pointer to UEFI boot services tableimage_handle- UEFI image handlescreen- Screen for status display (unusable after EBS)config- Download configuration
§Safety
This function will never return on success. On failure, it loops forever.